Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devel/unittest-cpp: Deprecate and set expiration date to 2022-12-31
Upstream have listed project on hiatus for more than 2 years Disable broken test when NDEBUG is defined Reference: unittest-cpp/unittest-cpp#180 PR: 266853 Approved by: portmgr (maintainer timeout, 2+ weeks)
- Loading branch information
Daniel Engberg
authored and
Daniel Engberg
committed
Oct 20, 2022
1 parent
b7a5f13
commit 6cfe697
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- tests/TestTest.cpp.orig 2022-10-05 11:53:09 UTC | ||
+++ tests/TestTest.cpp | ||
@@ -74,29 +74,6 @@ namespace { | ||
|
||
#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 | ||
- { | ||
- public: | ||
- CrashingTest() : Test("crashing") {} | ||
- virtual void RunImpl() const | ||
- { | ||
- | ||
- reinterpret_cast< void (*)() >(0)(); | ||
- } | ||
- }; | ||
- | ||
- TestResults results; | ||
- { | ||
- ScopedCurrentTest scopedResult(results); | ||
- CrashingTest().Run(); | ||
- } | ||
- | ||
- CHECK_EQUAL(1, results.GetFailureCount()); | ||
- } | ||
-#endif | ||
#endif | ||
#endif | ||
|