diff --git a/tests/auto/xmlpatternssdk/Worker.cpp b/tests/auto/xmlpatternssdk/Worker.cpp
index d17696e068f96c056ad894aeabcf6622ce4a045d..883599d957390cfaf6d66aee6cdb4415233c55f1 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;
     }