summaryrefslogtreecommitdiffstats
path: root/tests/auto/testlib/selftests
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-07-20 19:46:07 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-07-21 13:43:48 +0200
commit85ce556443e84271549f73e94f7f5b3a03b7925a (patch)
treeb86090827d6c8b5afcf119f0464730e67f8f9169 /tests/auto/testlib/selftests
parent0bf120f5fd197cd215cd9520a494b162887d1ec4 (diff)
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>
Diffstat (limited to 'tests/auto/testlib/selftests')
-rw-r--r--tests/auto/testlib/selftests/tst_selftests.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}