From 60769f98369a261498c82bef92ca872f389ef30f Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Thu, 12 Dec 2024 22:38:22 +0100 Subject: [PATCH] ... --- quotest/quotest.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/quotest/quotest.cpp b/quotest/quotest.cpp index 890245d2..0190bbda 100644 --- a/quotest/quotest.cpp +++ b/quotest/quotest.cpp @@ -965,12 +965,14 @@ void TestManager::finalize(const QString& lastWords) clog << "Logging out" << endl; c->logout().then( this, [this, lastWords] { - clog << lastWords.toStdString() << endl; - QCoreApplication::exit(!testSuite ? -3 + auto result = !testSuite ? -3 : succeeded.empty() && failed.empty() && running.empty() ? -4 - : static_cast(failed.size() + running.size())); + : static_cast(failed.size() + running.size()); + qWarning() << "Finished" << testSuite << succeeded.size() << failed.size() << running.size() << result; + clog << lastWords.toStdString() << endl; + QCoreApplication::exit(result); }); }