Merge pull request #1106 from orbz22/test/register-windows-exception-tests

test(libc): run windows_exception_tests in ctest
This commit is contained in:
Dean
2026-10-08 18:19:11 +13:00
committed by GitHub
+5
View File
@@ -302,4 +302,9 @@ if(MINGW)
set_target_properties(windows_exception_tests PROPERTIES CXX_EXTENSIONS OFF)
target_link_libraries(windows_exception_tests PRIVATE libc)
configure_windows_unwind(windows_exception_tests)
if(BUILD_TESTING)
set_target_properties(windows_exception_tests PROPERTIES EXCLUDE_FROM_ALL FALSE)
add_test(NAME windows_exceptions COMMAND windows_exception_tests)
set_tests_properties(windows_exceptions PROPERTIES ENVIRONMENT_MODIFICATION "PATH=path_list_prepend:$<TARGET_FILE_DIR:libc>")
endif()
endif()