From 2e8f94811d713ef560ca6f274f3a2b7494ab5661 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Thu, 12 Dec 2024 22:38:22 +0100 Subject: [PATCH] ... --- quotest/quotest.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/quotest/quotest.cpp b/quotest/quotest.cpp index 890245d2..5c7e5be5 100644 --- a/quotest/quotest.cpp +++ b/quotest/quotest.cpp @@ -966,11 +966,12 @@ void TestManager::finalize(const QString& lastWords) 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()); + QCoreApplication::exit(result); }); }