diff options
author | Dimitrios Apostolou <jimis@qt.io> | 2021-11-29 10:47:55 +0100 |
---|---|---|
committer | Dimitrios Apostolou <jimis@qt.io> | 2021-12-17 07:03:26 +0100 |
commit | 725fc4da44d61472b99a625ba25c045140adb6fa (patch) | |
tree | 7e3e03b25f5a2397c8059016a0a94af6d5bb0169 /tests/auto/testlib/selftests/tst_selftests.cpp | |
parent | df0351836e3c008bff4326e0e52e764399d328b0 (diff) |
Properly indent qtestlib's XML output
Also regenerate the expected output for tst_selftests, to match new
output. Changed one line source code in tst_seftests for the
same purpose.
Change-Id: I930ba4bb290568d6f67a8910a781725f01f08bf1
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'tests/auto/testlib/selftests/tst_selftests.cpp')
-rw-r--r-- | tests/auto/testlib/selftests/tst_selftests.cpp | 3 |
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()) |