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