summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp')
-rw-r--r--tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp b/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp
index 7e1cc77172..52cd1051ba 100644
--- a/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp
+++ b/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp
@@ -2142,6 +2142,7 @@ void tst_QApplication::qtbug_12673()
QVERIFY2(!path.isEmpty(), "Cannot locate modal helper application");
path += "modal";
+#ifndef QT_NO_PROCESS
QProcess testProcess;
QStringList arguments;
testProcess.start(path, arguments);
@@ -2149,6 +2150,9 @@ void tst_QApplication::qtbug_12673()
qPrintable(QString::fromLatin1("Cannot start '%1': %2").arg(path, testProcess.errorString())));
QVERIFY(testProcess.waitForFinished(20000));
QCOMPARE(testProcess.exitStatus(), QProcess::NormalExit);
+#else
+ QSKIP( "No QProcess support", SkipAll);
+#endif
}
class NoQuitOnHideWidget : public QWidget
@@ -2222,7 +2226,9 @@ void tst_QApplication::abortQuitOnShow()
executed *after* the destruction of QApplication.
*/
Q_GLOBAL_STATIC(QLocale, tst_qapp_locale);
+#ifndef QT_NO_PROCESS
Q_GLOBAL_STATIC(QProcess, tst_qapp_process);
+#endif
Q_GLOBAL_STATIC(QFileSystemWatcher, tst_qapp_fileSystemWatcher);
#ifndef QT_NO_SHAREDMEMORY
Q_GLOBAL_STATIC(QSharedMemory, tst_qapp_sharedMemory);
@@ -2243,7 +2249,9 @@ void tst_QApplication::globalStaticObjectDestruction()
int argc = 1;
QApplication app(argc, &argv0);
QVERIFY(tst_qapp_locale());
+#ifndef QT_NO_PROCESS
QVERIFY(tst_qapp_process());
+#endif
QVERIFY(tst_qapp_fileSystemWatcher());
#ifndef QT_NO_SHAREDMEMORY
QVERIFY(tst_qapp_sharedMemory());