mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-16 10:42:25 +01:00
Fix build errors.
This commit is contained in:
parent
5dc0474d8a
commit
ed3bcd3dd2
@ -127,9 +127,7 @@ namespace Catch {
|
|||||||
|
|
||||||
void FatalConditionHandler::disengage_platform() noexcept {
|
void FatalConditionHandler::disengage_platform() noexcept {
|
||||||
if (SetUnhandledExceptionFilter(previousTopLevelExceptionFilter) != topLevelExceptionFilter) {
|
if (SetUnhandledExceptionFilter(previousTopLevelExceptionFilter) != topLevelExceptionFilter) {
|
||||||
Catch::cerr()
|
CATCH_RUNTIME_ERROR("Could not restore previous top level exception filter");
|
||||||
<< "Unexpected SEH unhandled exception filter on disengage."
|
|
||||||
<< " The filter was restored, but might be rolled back unexpectedly.";
|
|
||||||
}
|
}
|
||||||
previousTopLevelExceptionFilter = nullptr;
|
previousTopLevelExceptionFilter = nullptr;
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ namespace Catch {
|
|||||||
// Should be if-defed to work on current platform, can assume
|
// Should be if-defed to work on current platform, can assume
|
||||||
// engage-disengage 1:1 pairing.
|
// engage-disengage 1:1 pairing.
|
||||||
void engage_platform();
|
void engage_platform();
|
||||||
void disengage_platform();
|
void disengage_platform() noexcept;
|
||||||
public:
|
public:
|
||||||
// Should also have platform-specific implementations as needed
|
// Should also have platform-specific implementations as needed
|
||||||
FatalConditionHandler();
|
FatalConditionHandler();
|
||||||
|
@ -522,7 +522,7 @@ TEST_CASE("Validate SEH behavior - unhandled", "[.approvals][FatalConditionHandl
|
|||||||
throw_no_catch();
|
throw_no_catch();
|
||||||
}
|
}
|
||||||
|
|
||||||
static LONG CALLBACK dummyExceptionFilter(PEXCEPTION_POINTERS ExceptionInfo) {
|
static LONG CALLBACK dummyExceptionFilter(PEXCEPTION_POINTERS /*ExceptionInfo*/) {
|
||||||
return EXCEPTION_CONTINUE_SEARCH;
|
return EXCEPTION_CONTINUE_SEARCH;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user