diff --git a/src/testlib/qtaptestlogger.cpp b/src/testlib/qtaptestlogger.cpp index b6fa4295bc3..2c87c15d6ca 100644 --- a/src/testlib/qtaptestlogger.cpp +++ b/src/testlib/qtaptestlogger.cpp @@ -292,7 +292,7 @@ void QTapTestLogger::addIncident(IncidentTypes type, const char *description, // the expected and actual values to the loggers (yet). static const QRegularExpression verifyRegex( u"^'(?.*)' returned " - "(?\\w+).+\\((?.*)\\)$"_s); + "(?\\w+)\\. \\((?.*)\\)$"_s); static const QRegularExpression compareRegex( u"^(?.*)\n" diff --git a/tests/auto/testlib/selftests/expected_cmptest.tap b/tests/auto/testlib/selftests/expected_cmptest.tap index 65b0504be47..368d3aafb4e 100644 --- a/tests/auto/testlib/selftests/expected_cmptest.tap +++ b/tests/auto/testlib/selftests/expected_cmptest.tap @@ -547,7 +547,7 @@ not ok 65 - verify() not ok 66 - verify2() --- type: QVERIFY - message: as expected, in fact) + message: 42 >= 2 (as expected, in fact) wanted: true (opaqueFunc() < 2) found: false (opaqueFunc() < 2) expected: true (opaqueFunc() < 2) diff --git a/tests/auto/testlib/selftests/expected_eventloop.tap b/tests/auto/testlib/selftests/expected_eventloop.tap index 85f48a13a16..84036e6dec5 100644 --- a/tests/auto/testlib/selftests/expected_eventloop.tap +++ b/tests/auto/testlib/selftests/expected_eventloop.tap @@ -11,7 +11,7 @@ not ok 2 - fail() not ok 2 - fail() --- type: QVERIFY - message: ) + message: QTestEventLoop exited prematurely in cleanup() wanted: true (loop.timeout()) found: false (loop.timeout()) expected: true (loop.timeout()) @@ -35,7 +35,7 @@ not ok 3 - skip() not ok 3 - skip() --- type: QVERIFY - message: ) + message: QTestEventLoop exited prematurely in cleanup() wanted: true (loop.timeout()) found: false (loop.timeout()) expected: true (loop.timeout()) @@ -59,7 +59,7 @@ not ok 4 - pass() not ok 4 - pass() --- type: QVERIFY - message: ) + message: QTestEventLoop exited prematurely in cleanup() wanted: true (loop.timeout()) found: false (loop.timeout()) expected: true (loop.timeout())