comparison ui/tests/cinstprocesstest.cpp @ 305:4a3febc6d806

Some minor cleanups. Better debug output more Verify's
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 03 Apr 2014 15:29:58 +0200
parents 56507c3d5f1e
children 9c5e6b142611
comparison
equal deleted inserted replaced
304:eecc06f714fd 305:4a3febc6d806
34 #define VERIFY_PROC_DEBUG(x) \ 34 #define VERIFY_PROC_DEBUG(x) \
35 if (! x ) { \ 35 if (! x ) { \
36 qDebug() << "Stdout:" << proc->readAllStandardOutput(); \ 36 qDebug() << "Stdout:" << proc->readAllStandardOutput(); \
37 qDebug() << "Stderr:" << proc->readAllStandardError(); \ 37 qDebug() << "Stderr:" << proc->readAllStandardError(); \
38 qDebug() << "Exit code: " << proc->exitCode(); \ 38 qDebug() << "Exit code: " << proc->exitCode(); \
39 qDebug() << "Exit status: " << proc->exitStatus(); \
39 } \ 40 } \
40 QVERIFY(x) 41 QVERIFY(x)
41 42
42 void finishVerify(QProcess *proc, int exitCode) { 43 void finishVerify(QProcess *proc, int exitCode) {
43 proc->closeWriteChannel(); 44 proc->closeWriteChannel();

http://wald.intevation.org/projects/trustbridge/