diff --git a/tests/auto/debugger/tst_dumpers.cpp b/tests/auto/debugger/tst_dumpers.cpp index 1d5d63ab0a3..91299b3662c 100644 --- a/tests/auto/debugger/tst_dumpers.cpp +++ b/tests/auto/debugger/tst_dumpers.cpp @@ -1687,6 +1687,12 @@ void tst_Dumpers::dumper() bool ok = true; auto test = [&](const Check &check, bool *removeIt, bool single) { + if (!check.matches(m_debuggerEngine, m_debuggerVersion, context)) { + if (single) + qDebug() << "SKIPPING NON-MATCHING TEST FOR " << check.iname; + return true; // we have not failed + } + const QString iname = check.iname; WatchItem *item = static_cast(local.findAnyChild([iname](Utils::TreeItem *item) { return static_cast(item)->internalName() == iname; @@ -1700,12 +1706,6 @@ void tst_Dumpers::dumper() *removeIt = true; - if (!check.matches(m_debuggerEngine, m_debuggerVersion, context)) { - if (single) - qDebug() << "SKIPPING NON-MATCHING TEST FOR " << iname; - return true; // we have not failed - } - //qDebug() << "USING MATCHING TEST FOR " << iname; QString name = item->realName(); QString type = item->type;