diff --git a/tests/auto/debugger/tst_dumpers.cpp b/tests/auto/debugger/tst_dumpers.cpp index b365da3e0957f36af68ad39090e08024e8b66fe7..deab2783e16d423b9a1c1994907a6358de84a8bb 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;