Added
Link Here
|
0 |
- |
1 |
--- tests/TestTest.cpp.orig 2022-10-05 11:53:09 UTC |
|
|
2 |
+++ tests/TestTest.cpp |
3 |
@@ -74,29 +74,6 @@ namespace { |
4 |
|
5 |
#if !defined(UNITTEST_MINGW) && !defined(UNITTEST_WIN32) |
6 |
// Skip this test in debug because some debuggers don't like it. |
7 |
-#if defined(NDEBUG) |
8 |
- TEST(CrashingTestsAreReportedAsFailures) |
9 |
- { |
10 |
- class CrashingTest : public Test |
11 |
- { |
12 |
- public: |
13 |
- CrashingTest() : Test("crashing") {} |
14 |
- virtual void RunImpl() const |
15 |
- { |
16 |
- |
17 |
- reinterpret_cast< void (*)() >(0)(); |
18 |
- } |
19 |
- }; |
20 |
- |
21 |
- TestResults results; |
22 |
- { |
23 |
- ScopedCurrentTest scopedResult(results); |
24 |
- CrashingTest().Run(); |
25 |
- } |
26 |
- |
27 |
- CHECK_EQUAL(1, results.GetFailureCount()); |
28 |
- } |
29 |
-#endif |
30 |
#endif |
31 |
#endif |
32 |
|