Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
horenmar committed Dec 17, 2021
1 parent f923304 commit 15eb876
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/CMakeLists.txt
Expand Up @@ -371,6 +371,16 @@ set_tests_properties("Benchmarking::FailureReporting::ShouldFailIsRespected"
PASS_REGULAR_EXPRESSION "1 failed as expected"
)

if (MSVC)
add_test(
NAME "FatalErrorHandling::UnhandledExceptionFailsTest"
COMMAND $<TARGET_FILE:SelfTest> "Validate SEH behavior - unhandled"
)
set_tests_properties("FatalErrorHandling::UnhandledExceptionFailsTest"
PROPERTIES
WILL_FAIL ON
)
endif()

if (CATCH_USE_VALGRIND)
add_test(NAME ValgrindRunTests COMMAND valgrind --leak-check=full --error-exitcode=1 $<TARGET_FILE:SelfTest>)
Expand Down

0 comments on commit 15eb876

Please sign in to comment.