V2.x. Back-port PR #2334 to the v2.x branch#2581
V2.x. Back-port PR #2334 to the v2.x branch#2581ScottHutchinson wants to merge 6 commits intocatchorg:v2.xfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## v2.x #2581 +/- ##
==========================================
- Coverage 90.08% 89.98% -0.10%
==========================================
Files 113 113
Lines 5040 5038 -2
==========================================
- Hits 4540 4533 -7
- Misses 500 505 +5 |
|
|
||
| }} // namespace MiscTests | ||
|
|
||
| #if defined(CATCH_PLATFORM_WINDOWS) |
There was a problem hiding this comment.
The test in v3 only checks with MSVC. Why the change?
There was a problem hiding this comment.
I certainly didn't mean to change it.
| void FatalConditionHandler::disengage_platform() { | ||
| if (!RemoveVectoredExceptionHandler(exceptionHandlerHandle)) { | ||
| CATCH_RUNTIME_ERROR("Could not unregister vectored exception handler"); | ||
| if (SetUnhandledExceptionFilter(reinterpret_cast<LPTOP_LEVEL_EXCEPTION_FILTER>(previousTopLevelExceptionFilter)) != topLevelExceptionFilter) { |
There was a problem hiding this comment.
Similar question: the code in v3 does not need the wild reinterpret cast. Why is it needed here?
There was a problem hiding this comment.
I thought sure I just copied the code from v3. I'll look at it no later than Monday. Thanks.
|
otherwise lgtm |
This PR back-ports the PR #2334 to the v2.x branch, enabling v2.x to be used with the Address Sanitizer on Windows.