summaryrefslogtreecommitdiffstats
path: root/tests/auto/testlib/selftests/tst_selftests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/testlib/selftests/tst_selftests.cpp')
-rw-r--r--tests/auto/testlib/selftests/tst_selftests.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/testlib/selftests/tst_selftests.cpp b/tests/auto/testlib/selftests/tst_selftests.cpp
index 2ef3f921dc..8aad22dec8 100644
--- a/tests/auto/testlib/selftests/tst_selftests.cpp
+++ b/tests/auto/testlib/selftests/tst_selftests.cpp
@@ -311,8 +311,7 @@ bool compareLine(const QString &logger, const QString &subdir,
return compareBenchmarkResult(actualResult, expectedResult, errorMessage);
}
- if (actualLine.startsWith(QLatin1String(" <Duration msecs="))
- || actualLine.startsWith(QLatin1String("<Duration msecs="))) {
+ if (actualLine.contains(QLatin1String("<Duration msecs="))) {
static QRegularExpression durationRegExp("<Duration msecs=\"[\\d\\.]+\"/>");
QRegularExpressionMatch match = durationRegExp.match(actualLine);
if (match.hasMatch())