From e93c73c0aa15cd973e008a04a70a7c69719ad244 Mon Sep 17 00:00:00 2001 From: Maurice Kalinowski Date: Mon, 8 Aug 2016 15:54:42 +0200 Subject: Fix compilation without QProcess support Change-Id: I85b2baec60f700a9246e6ce177e7079b8e791ad2 Reviewed-by: J-P Nurmi --- tests/auto/styles/tst_styles.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/auto/styles/tst_styles.cpp b/tests/auto/styles/tst_styles.cpp index b45366b6..99c48126 100644 --- a/tests/auto/styles/tst_styles.cpp +++ b/tests/auto/styles/tst_styles.cpp @@ -48,6 +48,7 @@ int main(int argc, char *argv[]) QCoreApplication app(argc, argv); +#ifndef QT_NO_PROCESS int failures = 0; int count = sizeof(styles) / sizeof(styles[0]); @@ -67,4 +68,7 @@ int main(int argc, char *argv[]) } return failures; +#else // QT_NO_PROCESS + return 0; +#endif // QT_NO_PROCESS } -- cgit v1.2.3