From 85ce556443e84271549f73e94f7f5b3a03b7925a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Mon, 20 Jul 2020 19:46:07 +0200 Subject: 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 --- tests/auto/testlib/selftests/tst_selftests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/auto') diff --git a/tests/auto/testlib/selftests/tst_selftests.cpp b/tests/auto/testlib/selftests/tst_selftests.cpp index 293f8e5333..350a528893 100644 --- a/tests/auto/testlib/selftests/tst_selftests.cpp +++ b/tests/auto/testlib/selftests/tst_selftests.cpp @@ -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); } -- cgit v1.2.3