diff --git a/quotest/quotest.cpp b/quotest/quotest.cpp index 0190bbda..63a847d8 100644 --- a/quotest/quotest.cpp +++ b/quotest/quotest.cpp @@ -972,7 +972,7 @@ void TestManager::finalize(const QString& lastWords) : static_cast(failed.size() + running.size()); qWarning() << "Finished" << testSuite << succeeded.size() << failed.size() << running.size() << result; clog << lastWords.toStdString() << endl; - QCoreApplication::exit(result); + QCoreApplication::exit(result == 0 ? 0 : result); }); }