testlib selftest: Properly print failing tests

We don't want to print the QString as represented by the debug
operator, but instead want to expand line feeds and other character
codes as normal.

Change-Id: I7261d8f94e7b4382733f06eb22f9a740a5c0488f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
Tor Arne Vestbø 2020-07-20 19:46:07 +02:00
parent 0bf120f5fd
commit 85ce556443

View File

@ -790,7 +790,7 @@ void checkErrorOutput(const QString &test, const QByteArray &errorOutput)
return;
#endif
INFO(errorOutput);
INFO(errorOutput.toStdString());
REQUIRE(errorOutput.isEmpty());
}
@ -913,7 +913,7 @@ void checkTestOutput(const QString &test, const TestLogger &logger, const QByteA
}
}
INFO(outputMessage);
INFO(outputMessage.toStdString());
CHECK(expectationMatched);
}