tst_QProcess_and_GuiEventLoop: Added flag QT_NO_PROCESS
Change-Id: I895b9c12de8734c20ec87ac30a9a9cca8f4242d7 Reviewed-by: Pasi Petäjäjärvi <pasi.petajajarvi@theqtcompany.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
1b29ef627c
commit
c258422cf9
@ -45,9 +45,11 @@ private slots:
|
|||||||
|
|
||||||
void tst_QProcess_and_GuiEventLoop::waitForAndEventLoop()
|
void tst_QProcess_and_GuiEventLoop::waitForAndEventLoop()
|
||||||
{
|
{
|
||||||
#if defined(Q_OS_ANDROID) && !defined(Q_OS_ANDROID_NO_SDK)
|
#if defined(QT_NO_PROCESS)
|
||||||
|
QSKIP("QProcess not supported");
|
||||||
|
#elif defined(Q_OS_ANDROID) && !defined(Q_OS_ANDROID_NO_SDK)
|
||||||
QSKIP("Not supported on Android");
|
QSKIP("Not supported on Android");
|
||||||
#endif
|
#else
|
||||||
|
|
||||||
// based on testcase provided in QTBUG-39488
|
// based on testcase provided in QTBUG-39488
|
||||||
QByteArray msg = "Hello World";
|
QByteArray msg = "Hello World";
|
||||||
@ -78,6 +80,7 @@ void tst_QProcess_and_GuiEventLoop::waitForAndEventLoop()
|
|||||||
QCOMPARE(process.exitCode(), 0);
|
QCOMPARE(process.exitCode(), 0);
|
||||||
QCOMPARE(spy.count(), 1);
|
QCOMPARE(spy.count(), 1);
|
||||||
QCOMPARE(process.readAll().trimmed(), msg);
|
QCOMPARE(process.readAll().trimmed(), msg);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
QTEST_MAIN(tst_QProcess_and_GuiEventLoop)
|
QTEST_MAIN(tst_QProcess_and_GuiEventLoop)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user