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:
hjk
2018-09-17 16:40:58 +02:00
parent d421bc2fe3
commit 83a8b8bf8f

View File

@@ -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;