diff --git a/tests/auto/other/qprocess_and_guieventloop/tst_qprocess_and_guieventloop.cpp b/tests/auto/other/qprocess_and_guieventloop/tst_qprocess_and_guieventloop.cpp
index 53459b13f66ea363639c6047c048ea619300a3f7..b79b3aba288796c7ed856829232e2529ee563db0 100644
--- a/tests/auto/other/qprocess_and_guieventloop/tst_qprocess_and_guieventloop.cpp
+++ b/tests/auto/other/qprocess_and_guieventloop/tst_qprocess_and_guieventloop.cpp
@@ -45,9 +45,11 @@ private slots:
 
 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");
-#endif
+#else
 
     // based on testcase provided in QTBUG-39488
     QByteArray msg = "Hello World";
@@ -78,6 +80,7 @@ void tst_QProcess_and_GuiEventLoop::waitForAndEventLoop()
     QCOMPARE(process.exitCode(), 0);
     QCOMPARE(spy.count(), 1);
     QCOMPARE(process.readAll().trimmed(), msg);
+#endif
 }
 
 QTEST_MAIN(tst_QProcess_and_GuiEventLoop)