mirror of
https://github.com/unittest-cpp/unittest-cpp
synced 2026-09-26 16:19:30 +03:00
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:
parent
d310c03eea
commit
bd11339b2d
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue