forked from qt-creator/qt-creator
Debugger: Do not count not matching test as failed
Change-Id: I37a109915426d17b65ab0782e90f238a5da94a1c Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -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<WatchItem *>(local.findAnyChild([iname](Utils::TreeItem *item) {
|
||||
return static_cast<WatchItem *>(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;
|
||||
|
||||
Reference in New Issue
Block a user