summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-10-12 14:51:09 +1000
committerQt by Nokia <qt-info@nokia.com>2011-10-17 03:30:55 +0200
commita40ebefcd382cb70676ed5883beace015c87f095 (patch)
tree9211b47833513502f770724d71f05d4e666a126d /tests
parent73d2970acda9dc3db16128b19a7c84f871b2f749 (diff)
Only build exceptionsafety_objects test if useful
The test appears to be applicable only if building with g++, and even then the test is broken. Change-Id: I9eefb13325a10ec295a59c2bd1111e3c324ff94f Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/exceptionsafety_objects/tst_exceptionsafety_objects.cpp7
-rw-r--r--tests/auto/other.pro2
2 files changed, 4 insertions, 5 deletions
diff --git a/tests/auto/exceptionsafety_objects/tst_exceptionsafety_objects.cpp b/tests/auto/exceptionsafety_objects/tst_exceptionsafety_objects.cpp
index e8acc6fcff..82289d9efd 100644
--- a/tests/auto/exceptionsafety_objects/tst_exceptionsafety_objects.cpp
+++ b/tests/auto/exceptionsafety_objects/tst_exceptionsafety_objects.cpp
@@ -48,10 +48,9 @@
QT_USE_NAMESPACE
-// this test only works with
-// * GLIBC
-// * MSVC - only debug builds (we need the crtdbg.h helpers)
-#if (defined(QT_NO_EXCEPTIONS) || (!defined(__GLIBC__) && !defined(Q_CC_MSVC))) && !defined(Q_MOC_RUN)
+// this test only works with GLIBC
+
+#if defined(QT_NO_EXCEPTIONS)
QTEST_NOOP_MAIN
#else
diff --git a/tests/auto/other.pro b/tests/auto/other.pro
index 48170a26f2..17a92a2e01 100644
--- a/tests/auto/other.pro
+++ b/tests/auto/other.pro
@@ -42,7 +42,7 @@ wince*|!contains(QT_CONFIG, accessibility):SUBDIRS -= qaccessibility
qdirectpainter \
qmultiscreen \
-win32-msvc*|wince*:SUBDIRS -= exceptionsafety_objects
+!linux*-g++*:SUBDIRS -= exceptionsafety_objects
# Following tests depends on private API
!contains(QT_CONFIG, private_tests): SUBDIRS -= \