diff options
author | hjk <hjk121@nokiamail.com> | 2013-05-22 08:55:19 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2013-05-22 09:23:37 +0200 |
commit | f863fa6044edbde61989bc5da291139e1997fbc8 (patch) | |
tree | 92ed97d6d582ae28f5817bce1da85545b5740d58 /tests | |
parent | 736d32ba8aa02bac034fe480f5566e16fdb79ae4 (diff) | |
download | qt-creator-f863fa6044edbde61989bc5da291139e1997fbc8.tar.gz |
Debugger: Show Qt version and dumper dir in failed autotests
Change-Id: I7520278266717e854dbb136a140381791f483c0c
Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/debugger/tst_dumpers.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/auto/debugger/tst_dumpers.cpp b/tests/auto/debugger/tst_dumpers.cpp index 0853352fb8..6689184203 100644 --- a/tests/auto/debugger/tst_dumpers.cpp +++ b/tests/auto/debugger/tst_dumpers.cpp @@ -536,6 +536,7 @@ void tst_Dumpers::initTestCase() //qDebug() << "stdout: " << output; m_usePython = !output.contains("Python scripting is not supported in this copy of GDB"); qDebug() << (m_usePython ? "Python is available" : "Python is not available"); + qDebug() << "Dumper dir: " << DUMPERDIR; QString version = QString::fromLocal8Bit(output); int pos1 = version.indexOf(QLatin1String("&\"show version\\n")); @@ -847,7 +848,8 @@ void tst_Dumpers::dumper() if (!check.expectedValue.matches(item.value, context)) { qDebug() << "INAME : " << item.iname; qDebug() << "VALUE ACTUAL : " << item.value << toHex(item.value); - qDebug() << "VALUE EXPECTED: " << check.expectedValue.value << toHex(check.expectedValue.value); + qDebug() << "VALUE EXPECTED: " + << check.expectedValue.value << toHex(check.expectedValue.value); ok = false; } if (!check.expectedType.matches(item.type, context)) { @@ -871,8 +873,11 @@ void tst_Dumpers::dumper() qDebug() << "EXPANDED : " << expanded; ok = false; } - if (!ok) + if (!ok) { qDebug() << "CONTENTS : " << contents; + qDebug() << "Qt VERSION : " + << qPrintable(QString::number(context.qtVersion, 16)); + } QVERIFY(ok); t->buildTemp.setAutoRemove(m_keepTemp); } |