Debugger: More verbose test output in case of failure

Change-Id: I41d9b634be850bfbc666c1a929b0f82b7f741069
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
hjk
2014-03-27 14:11:35 +01:00
parent 5e7a27dbe7
commit fdf39819df

View File

@@ -1147,7 +1147,10 @@ void tst_Dumpers::dumper()
QByteArray contents; QByteArray contents;
if (m_debuggerEngine == GdbEngine) { if (m_debuggerEngine == GdbEngine) {
int posDataStart = output.indexOf("data="); int posDataStart = output.indexOf("data=");
QVERIFY(posDataStart != -1); if (posDataStart == -1) {
qDebug() << "NO \"data=\" IN OUTPUT: " << output;
QVERIFY(posDataStart != -1);
}
contents = output.mid(posDataStart); contents = output.mid(posDataStart);
contents.replace("\\\"", "\""); contents.replace("\\\"", "\"");