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>
bb10
Jason McDonald 2011-10-12 14:51:09 +10:00 committed by Qt by Nokia
parent 73d2970acd
commit a40ebefcd3
2 changed files with 4 additions and 5 deletions

View File

@ -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

View File

@ -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 -= \