Only build Mac-specific tests on Mac.
All but one of these tests was already excluded from the build on non-Mac platforms, but still had #ifdef's to make the test empty if compiled on a non-Mac platform. Change-Id: I1a3677c1cdb7bd467cf4317ed4cfbac89e934e76 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
This commit is contained in:
parent
5ad123c136
commit
e33713f03a
@ -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
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user