Disable CrashingTests... in debug.

After some consideration I decided to just remove this test in debug
configurations. Many debuggers will behave as XCode does and try to
'catch' this by default. The test still works in release configs.

Fixes #45.
This commit is contained in:
Patrick Johnmeyer 2015-04-04 00:56:40 -05:00
parent d310c03eea
commit bd11339b2d

View file

@ -73,6 +73,8 @@ TEST(ThrowingTestsAreReportedAsFailures)
}
#if !defined(UNITTEST_MINGW) && !defined(UNITTEST_WIN32)
// Skip this test in debug because some debuggers don't like it.
#if defined(NDEBUG)
TEST(CrashingTestsAreReportedAsFailures)
{
class CrashingTest : public Test
@ -96,6 +98,7 @@ TEST(CrashingTestsAreReportedAsFailures)
}
#endif
#endif
#endif
TEST(TestWithUnspecifiedSuiteGetsDefaultSuite)
{