From bb7898af114a7897d7f70047003e6ff418e2d692 Mon Sep 17 00:00:00 2001 From: Raihan Abdul Majid Date: Wed, 7 Oct 2026 19:16:51 +0700 Subject: [PATCH] test(libc): run windows_exception_tests in ctest The MinGW exception test was built only on request and never registered, so the cross-DLL unwinding it covers was not checked in CI. Build it with BUILD_TESTING and run it with the libc directory on PATH, as guest_locale does, since it imports libc.prx. Co-Authored-By: Claude Opus 5.5 --- core/libs/prx/libc/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/libs/prx/libc/CMakeLists.txt b/core/libs/prx/libc/CMakeLists.txt index c59665ab8..6c31cccef 100644 --- a/core/libs/prx/libc/CMakeLists.txt +++ b/core/libs/prx/libc/CMakeLists.txt @@ -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:$") + endif() endif()