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>
bb10
Tor Arne Vestbø 2020-07-20 19:46:07 +02:00
parent 0bf120f5fd
commit 85ce556443
1 changed files with 2 additions and 2 deletions

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);
}