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:
parent
0bf120f5fd
commit
85ce556443
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user