summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-11-26 01:21:23 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-11-26 01:21:23 (GMT)
commit6dc29b3a2f93936aa5a3eecb336631485c5195b8 (patch)
treee542cd3614d39a1ed4f789489c56ff57d5c6de18 /tests/auto/declarative
parentd11f5011f84099a6558840118588c293605b05d4 (diff)
downloadQt-6dc29b3a2f93936aa5a3eecb336631485c5195b8.zip
Qt-6dc29b3a2f93936aa5a3eecb336631485c5195b8.tar.gz
Qt-6dc29b3a2f93936aa5a3eecb336631485c5195b8.tar.bz2
More detail when the process crashes in tst_qmlvisual.
Diffstat (limited to 'tests/auto/declarative')
-rw-r--r--tests/auto/declarative/qmlvisual/tst_qmlvisual.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/declarative/qmlvisual/tst_qmlvisual.cpp b/tests/auto/declarative/qmlvisual/tst_qmlvisual.cpp
index 18fbfca..7fee24f 100644
--- a/tests/auto/declarative/qmlvisual/tst_qmlvisual.cpp
+++ b/tests/auto/declarative/qmlvisual/tst_qmlvisual.cpp
@@ -146,10 +146,11 @@ void tst_qmlvisual::visual()
#endif
QProcess p;
+ p.setProcessChannelMode(QProcess::MergedChannels);
p.start(qmlruntime, arguments);
- QVERIFY(p.waitForFinished());
+ QVERIFY2(p.waitForFinished(), p.readAllStandardOutput().data());
if (p.exitCode() != 0)
- qDebug() << p.readAllStandardError();
+ qDebug() << p.readAllStandardOutput();
QCOMPARE(p.exitStatus(), QProcess::NormalExit);
QCOMPARE(p.exitCode(), 0);
}