Autotest: Forward stderr of the sub-processes

So we can get the output when running with QDBUS_DEBUG=1.

Change-Id: I6a6b8e0d82727c522914fb90a7ce594c86307d8f
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
bb10
Thiago Macieira 2015-01-01 18:22:47 -02:00
parent 6d3558b449
commit 9b869cfb01
5 changed files with 4 additions and 1 deletions

View File

@ -496,6 +496,7 @@ void tst_QDBusAbstractAdaptor::initTestCase()
#else
# define EXE ""
#endif
proc.setProcessChannelMode(QProcess::ForwardedErrorChannel);
proc.start(QFINDTESTDATA("qmyserver/qmyserver" EXE));
QVERIFY2(proc.waitForStarted(), qPrintable(proc.errorString()));
QVERIFY(proc.waitForReadyRead());

View File

@ -236,6 +236,7 @@ void tst_QDBusAbstractInterface::initTestCase()
#else
# define EXE ""
#endif
proc.setProcessChannelMode(QProcess::ForwardedErrorChannel);
proc.start(QFINDTESTDATA("qpinger/qpinger" EXE));
QVERIFY2(proc.waitForStarted(), qPrintable(proc.errorString()));
QVERIFY(proc.waitForReadyRead());

View File

@ -88,7 +88,6 @@ public slots:
QVariantList callArgs()
{
qDebug() << "callArgs" << MyObject::callArgs.count();
return MyObject::callArgs;
}

View File

@ -271,6 +271,7 @@ void tst_QDBusInterface::initTestCase()
#else
# define EXE ""
#endif
proc.setProcessChannelMode(QProcess::ForwardedErrorChannel);
proc.start(QFINDTESTDATA("qmyserver/qmyserver" EXE));
QVERIFY2(proc.waitForStarted(), qPrintable(proc.errorString()));
QVERIFY(proc.waitForReadyRead());

View File

@ -136,6 +136,7 @@ void tst_QDBusMarshall::initTestCase()
#else
# define EXE ""
#endif
proc.setProcessChannelMode(QProcess::ForwardedErrorChannel);
proc.start(QFINDTESTDATA("qpong/qpong" EXE));
QVERIFY2(proc.waitForStarted(), qPrintable(proc.errorString()));
QVERIFY(proc.waitForReadyRead());