summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/auto/gui.pro7
-rw-r--r--tests/auto/macgui/tst_macgui.cpp9
-rw-r--r--tests/auto/macnativeevents/tst_macnativeevents.cpp11
-rw-r--r--tests/auto/qmacstyle/tst_qmacstyle.cpp9
4 files changed, 7 insertions, 29 deletions
diff --git a/tests/auto/gui.pro b/tests/auto/gui.pro
index 607ea68357..65595405a5 100644
--- a/tests/auto/gui.pro
+++ b/tests/auto/gui.pro
@@ -136,7 +136,12 @@ SUBDIRS=\
qx11info \
# This test cannot be run on Mac OS
-mac*:SUBDIRS -= qwindowsurface
+mac*:SUBDIRS -= \
+ qwindowsurface \
+
+# This test can only be run on Mac OS
+!mac:SUBDIRS -= \
+ qmacstyle \
# This test takes too long to run on IRIX, so skip it on that platform
irix-*:SUBDIRS -= qitemview
diff --git a/tests/auto/macgui/tst_macgui.cpp b/tests/auto/macgui/tst_macgui.cpp
index 0fce2aa5e8..1552db21ab 100644
--- a/tests/auto/macgui/tst_macgui.cpp
+++ b/tests/auto/macgui/tst_macgui.cpp
@@ -50,8 +50,6 @@
#include <guitest.h>
-#ifdef Q_OS_MAC
-
class tst_MacGui : public GuiTester
{
Q_OBJECT
@@ -240,12 +238,5 @@ void tst_MacGui::spinBoxArrowButtons()
}
QTEST_MAIN(tst_MacGui)
-
-#else
-
-QTEST_NOOP_MAIN
-
-#endif
-
#include "tst_macgui.moc"
diff --git a/tests/auto/macnativeevents/tst_macnativeevents.cpp b/tests/auto/macnativeevents/tst_macnativeevents.cpp
index 0c0934e03f..ea30b0b5c2 100644
--- a/tests/auto/macnativeevents/tst_macnativeevents.cpp
+++ b/tests/auto/macnativeevents/tst_macnativeevents.cpp
@@ -50,8 +50,6 @@
#include "expectedeventlist.h"
#include <Carbon/Carbon.h>
-#ifdef Q_OS_MAC
-
QT_USE_NAMESPACE
class tst_MacNativeEvents : public QObject
@@ -520,12 +518,5 @@ void tst_MacNativeEvents::testModifierCtrlWithDontSwapCtrlAndMeta()
QCoreApplication::setAttribute(Qt::AA_MacDontSwapCtrlAndMeta, false);
}
-#include "tst_macnativeevents.moc"
-
QTEST_MAIN(tst_MacNativeEvents)
-
-#else
-
-QTEST_NOOP_MAIN
-
-#endif
+#include "tst_macnativeevents.moc"
diff --git a/tests/auto/qmacstyle/tst_qmacstyle.cpp b/tests/auto/qmacstyle/tst_qmacstyle.cpp
index 3c2f71184d..a262712abc 100644
--- a/tests/auto/qmacstyle/tst_qmacstyle.cpp
+++ b/tests/auto/qmacstyle/tst_qmacstyle.cpp
@@ -45,8 +45,6 @@
#include <qmacstyle_mac.h>
-#ifdef Q_WS_MAC
-
const int N = 1;
//TESTED_CLASS=
@@ -411,12 +409,5 @@ void tst_QMacStyle::smallMiniNormalExclusivity()
}
QTEST_MAIN(tst_QMacStyle)
-
-#else
-
-QTEST_NOOP_MAIN
-
-#endif
-
#include "tst_qmacstyle.moc"