From 416e73a0fcaf31f7c32ba7dcd214b62e6060123c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pasi=20Pet=C3=A4j=C3=A4j=C3=A4rvi?= Date: Wed, 16 Jan 2013 14:34:35 +0200 Subject: Check existence of QProcess feature before using it on Qt autotests. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit VxWorks does not have QProcess support. Change-Id: I20ed479125097d468a1aa50afb18c3749f0fbb98 Reviewed-by: Samuel Rødal --- .../corelib/kernel/qsystemsemaphore/test/tst_qsystemsemaphore.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/auto/corelib/kernel/qsystemsemaphore') diff --git a/tests/auto/corelib/kernel/qsystemsemaphore/test/tst_qsystemsemaphore.cpp b/tests/auto/corelib/kernel/qsystemsemaphore/test/tst_qsystemsemaphore.cpp index 297955366c..1638c1d462 100644 --- a/tests/auto/corelib/kernel/qsystemsemaphore/test/tst_qsystemsemaphore.cpp +++ b/tests/auto/corelib/kernel/qsystemsemaphore/test/tst_qsystemsemaphore.cpp @@ -66,6 +66,7 @@ private slots: void basicacquire(); void complexacquire(); +#ifndef QT_NO_PROCESS void basicProcesses(); void processes_data(); @@ -75,6 +76,7 @@ private slots: void undo(); #endif void initialValue(); +#endif // QT_NO_PROCESS private: QString helperBinary(); @@ -154,6 +156,7 @@ void tst_QSystemSemaphore::complexacquire() QCOMPARE(sem.errorString(), QString()); } +#ifndef QT_NO_PROCESS void tst_QSystemSemaphore::basicProcesses() { QSystemSemaphore sem("store", 0, QSystemSemaphore::Create); @@ -261,6 +264,7 @@ void tst_QSystemSemaphore::initialValue() release.waitForFinished(HELPERWAITTIME); QVERIFY(acquire.state()== QProcess::NotRunning); } +#endif QString tst_QSystemSemaphore::helperBinary() { -- cgit v1.2.3