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 --- tests/auto/corelib/plugin/quuid/tst_quuid.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/auto/corelib/plugin/quuid/tst_quuid.cpp') diff --git a/tests/auto/corelib/plugin/quuid/tst_quuid.cpp b/tests/auto/corelib/plugin/quuid/tst_quuid.cpp index 06b06bc464..aea86f76d1 100644 --- a/tests/auto/corelib/plugin/quuid/tst_quuid.cpp +++ b/tests/auto/corelib/plugin/quuid/tst_quuid.cpp @@ -73,7 +73,9 @@ private slots: void versions(); void threadUniqueness(); +#ifndef QT_NO_PROCESS void processUniqueness(); +#endif void hash(); @@ -319,6 +321,7 @@ void tst_QUuid::threadUniqueness() qDeleteAll(threads); } +#ifndef QT_NO_PROCESS void tst_QUuid::processUniqueness() { QProcess process; @@ -346,6 +349,7 @@ void tst_QUuid::processUniqueness() // They should be *different*! QVERIFY(processOneOutput != processTwoOutput); } +#endif void tst_QUuid::hash() { -- cgit v1.2.3