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.

Pick-to: 6.8
Change-Id: Id9045138a6535220abf819b8d334c629765a6547
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
This commit is contained in:
Assam Boudjelthia 2024-10-21 15:42:44 +03:00
parent 5a07f6ca4e
commit a9db240111

View File

@ -653,10 +653,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;