From 99448bb5f4591a506f25f2ff1f7c9cc2819dd81f Mon Sep 17 00:00:00 2001 From: Assam Boudjelthia Date: Mon, 21 Oct 2024 15:42:44 +0300 Subject: [PATCH] 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 (cherry picked from commit a9db240111e454331770d3def95f60eec3c368be) Reviewed-by: Qt Cherry-pick Bot --- src/tools/androidtestrunner/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/tools/androidtestrunner/main.cpp b/src/tools/androidtestrunner/main.cpp index b1d93c30c51..b4e12636ec5 100644 --- a/src/tools/androidtestrunner/main.cpp +++ b/src/tools/androidtestrunner/main.cpp @@ -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;