aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2020-07-29 16:59:53 +0200
committerChristian Stenger <christian.stenger@qt.io>2020-07-30 09:13:47 +0000
commit394b3212bb20719ed2713080691eb9c96e6062a8 (patch)
tree9c026390e9e46644e5965b350e878b0bfa959f31 /tests/auto
parentefc39f971ee378ee391d7182f748dee0fcbf4728 (diff)
Tests: Fix condition
Amends eb52982c9d7f. Change-Id: I47b145b678eafab90f3569e4f6a785f272a87666 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qml/codemodel/check/tst_check.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qml/codemodel/check/tst_check.cpp b/tests/auto/qml/codemodel/check/tst_check.cpp
index 475b404f8c..38342f6267 100644
--- a/tests/auto/qml/codemodel/check/tst_check.cpp
+++ b/tests/auto/qml/codemodel/check/tst_check.cpp
@@ -137,7 +137,7 @@ void tst_Check::test()
for (const SourceLocation &comment : doc->engine()->comments()) {
const QString text = doc->source().mid(comment.begin(), comment.end() - comment.begin());
const QRegularExpressionMatch match = messagePattern.match(text);
- if (match.hasMatch())
+ if (!match.hasMatch())
continue;
const int type = match.captured(1).toInt();
const int columnStart = match.captured(2).toInt();