summaryrefslogtreecommitdiffstats
path: root/tests/auto/exceptionsafety_objects
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/auto/exceptionsafety_objects
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/auto/exceptionsafety_objects')
-rw-r--r--tests/auto/exceptionsafety_objects/tst_exceptionsafety_objects.cpp7
1 files changed, 3 insertions, 4 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