summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2015-04-16 09:23:39 +0200
committerhjk <hjk@theqtcompany.com>2015-04-16 07:42:34 +0000
commitba947fbb9e7da6c6e9f7b32421c9cf5113c7e2ee (patch)
treeb20596ac32d802e07b0fc7d389df4afa853ffb25 /tests
parentbd964ab0be5070c47a2c65813760413596b028e1 (diff)
downloadqt-creator-ba947fbb9e7da6c6e9f7b32421c9cf5113c7e2ee.tar.gz
Debugger: Fix handling of ? in dumper test
Normally, we use '?' as an optional Qt namespace qualification. This clashes with the use of ? in a regexp type expression. Re-order checks to avoid the clash. Change-Id: I4a8aee0174f4f3d21bec624919856623808becb1 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/debugger/tst_dumpers.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/auto/debugger/tst_dumpers.cpp b/tests/auto/debugger/tst_dumpers.cpp
index b365da3e09..deab2783e1 100644
--- a/tests/auto/debugger/tst_dumpers.cpp
+++ b/tests/auto/debugger/tst_dumpers.cpp
@@ -414,10 +414,6 @@ struct Type
expectedType.replace(' ', "");
expectedType.replace("const", "");
expectedType.replace('@', context.nameSpace);
- if (fullNamespaceMatch)
- expectedType.replace('?', context.nameSpace);
- else
- expectedType.replace('?', "");
if (isPattern) {
QString actual = QString::fromLatin1(actualType);
@@ -425,6 +421,11 @@ struct Type
return QRegExp(expected).exactMatch(actual);
}
+ if (fullNamespaceMatch)
+ expectedType.replace('?', context.nameSpace);
+ else
+ expectedType.replace('?', "");
+
if (actualType == expectedType)
return true;