Skip to content

Commit 967593c

Browse files
committed
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.
1 parent e8c5983 commit 967593c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/TestTest.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ TEST(ThrowingTestsAreReportedAsFailures)
7373
}
7474

7575
#if !defined(UNITTEST_MINGW) && !defined(UNITTEST_WIN32)
76+
// Skip this test in debug because some debuggers don't like it.
77+
#if defined(NDEBUG)
7678
TEST(CrashingTestsAreReportedAsFailures)
7779
{
7880
class CrashingTest : public Test
@@ -96,6 +98,7 @@ TEST(CrashingTestsAreReportedAsFailures)
9698
}
9799
#endif
98100
#endif
101+
#endif
99102

100103
TEST(TestWithUnspecifiedSuiteGetsDefaultSuite)
101104
{

0 commit comments

Comments
 (0)