From a0fdb626e5779e0f393fb9d031bc44d5f48de263 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Sat, 14 Mar 2015 12:19:09 +0100 Subject: Always summarize test results, even with unchanged baseline I currently have many failures (I assume through bad testsuite set up), they go by silently on the second run, instead now there will always be output: PASS : tst_XmlPatternsSchemaTS::runTestSuite() SUMMARY: Total: 39193 Failures: 39193 Passes: 0 Not tested: 0 Pass percentage(%): 0 Unexpected failures: 0 Unexpected passes: 0 Result was identical to the baseline, baseline was not updated. PASS : tst_XmlPatternsSchemaTS::checkTestSuiteResult() Change-Id: I4e11832ea711b8cb9feff088a09434122968d080 Reviewed-by: Simon Hausmann --- tests/auto/xmlpatternssdk/Worker.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/auto/xmlpatternssdk/Worker.cpp b/tests/auto/xmlpatternssdk/Worker.cpp index d17696e..883599d 100644 --- a/tests/auto/xmlpatternssdk/Worker.cpp +++ b/tests/auto/xmlpatternssdk/Worker.cpp @@ -209,6 +209,8 @@ void Worker::threadFinished() else if(m_unexpectedPasses.isEmpty() && baselineCount == resultCount) { err << "Result was identical to the baseline, baseline was not updated.\n"; + err.flush(); + QTextStream(stderr) << out; m_eventLoop.exit(ExitCode::Success); return; } -- cgit v1.2.1