AndroidTestRunner: don't print warning if crash logcat is empty

If it's empty and the command didn't fail then there's no
crash so no need to print anything.

Change-Id: Id9045138a6535220abf819b8d334c629765a6547
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
(cherry picked from commit a9db240111e454331770d3def95f60eec3c368be)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Assam Boudjelthia 2024-10-21 15:42:44 +03:00 committed by Qt Cherry-pick Bot
parent 7738c2fade
commit 99448bb5f4

View File

@ -685,10 +685,8 @@ void printLogcatCrashBuffer(const QString &formattedTime)
const QByteArray crash = useNdkStack ? ndkStackProcess.readAllStandardOutput()
: adbCrashProcess.readAllStandardOutput();
if (crash.isEmpty()) {
qWarning() << "The retrieved crash logcat is empty";
if (crash.isEmpty())
return;
}
qDebug() << "****** Begin logcat crash buffer output ******";
qDebug().noquote() << crash;