forked from qt-creator/qt-creator
Debugger: Split error messages in debugger output tests
Having one per line makes them easier to read. Change-Id: I4f4288ac26415cf9930c8b377972c391bd223ee4 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -1289,7 +1289,7 @@ void tst_Dumpers::dumper()
|
|||||||
qDebug() << "\n------------------ CODE --------------------";
|
qDebug() << "\n------------------ CODE --------------------";
|
||||||
qDebug() << fullCode;
|
qDebug() << fullCode;
|
||||||
qDebug() << "\n------------------ CODE --------------------";
|
qDebug() << "\n------------------ CODE --------------------";
|
||||||
qDebug() << "Project file: " << qPrintable(proFile.fileName());
|
qDebug() << "Project file: " << proFile.fileName();
|
||||||
}
|
}
|
||||||
|
|
||||||
QByteArray dumperDir = DUMPERDIR;
|
QByteArray dumperDir = DUMPERDIR;
|
||||||
@@ -1558,12 +1558,24 @@ void tst_Dumpers::dumper()
|
|||||||
m_keepTemp = false;
|
m_keepTemp = false;
|
||||||
} else {
|
} else {
|
||||||
local.forAllChildren([](WatchItem *item) { qDebug() << item->internalName(); });
|
local.forAllChildren([](WatchItem *item) { qDebug() << item->internalName(); });
|
||||||
|
|
||||||
|
int pos1 = 0, pos2 = -1;
|
||||||
|
while (true) {
|
||||||
|
pos1 = fullOutput.indexOf("bridgemessage={msg=", pos2 + 1);
|
||||||
|
if (pos1 == -1)
|
||||||
|
break;
|
||||||
|
pos1 += 21;
|
||||||
|
pos2 = fullOutput.indexOf("\"}", pos1 + 1);
|
||||||
|
if (pos2 == -1)
|
||||||
|
break;
|
||||||
|
qDebug() << "MSG: " << fullOutput.mid(pos1, pos2 - pos1 - 1);
|
||||||
|
}
|
||||||
qDebug() << "CONTENTS : " << contents;
|
qDebug() << "CONTENTS : " << contents;
|
||||||
qDebug() << "FULL OUTPUT : " << fullOutput;
|
qDebug() << "FULL OUTPUT : " << fullOutput;
|
||||||
qDebug() << "Qt VERSION : " << qPrintable(QString::number(context.qtVersion, 16));
|
qDebug() << "Qt VERSION : " << QString::number(context.qtVersion, 16);
|
||||||
if (m_debuggerEngine != CdbEngine)
|
if (m_debuggerEngine != CdbEngine)
|
||||||
qDebug() << "GCC VERSION : " << context.gccVersion;
|
qDebug() << "GCC VERSION : " << context.gccVersion;
|
||||||
qDebug() << "BUILD DIR : " << qPrintable(t->buildPath);
|
qDebug() << "BUILD DIR : " << t->buildPath;
|
||||||
}
|
}
|
||||||
QVERIFY(ok);
|
QVERIFY(ok);
|
||||||
disarm();
|
disarm();
|
||||||
|
Reference in New Issue
Block a user