Prefer QSKIP to QTEST_NOOP_MAIN.
authorJason McDonald <jason.mcdonald@nokia.com>
Mon, 17 Oct 2011 04:32:54 +0000 (14:32 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 17 Oct 2011 08:30:04 +0000 (10:30 +0200)
commit19168ca21ffda95de6c1e3ef07b4b57a58559e41
tree33a20d00b12d0efe1fed0d5b32e1e3fdea708d48
parent5d8d7b1dbc703c381033681c2cd4f7a912f60850
Prefer QSKIP to QTEST_NOOP_MAIN.

There is no way for a .pro file to know if exceptions are supported in
the Qt build, so these tests cannot be omitted from the build if
exceptions are not supported. Because of this limitation, these tests
were using QTEST_NOOP_MAIN when exceptions were not available, making
the tests appear to pass.  This commit changes QTEST_NOOP_MAIN to QSKIP,
so that the user receives a clear indication that the test isn't testing
anything when exceptions are not available.

Change-Id: I2facf08ba69e6f985e2da50dd36ad2658246b22e
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/exceptionsafety/tst_exceptionsafety.cpp
tests/auto/exceptionsafety_objects/tst_exceptionsafety_objects.cpp