From d3a1b89be36e89952e64adb93227df6b1698adb6 Mon Sep 17 00:00:00 2001 From: owner Date: Sat, 26 Sep 2026 13:20:15 -0600 Subject: [PATCH] test: wire up the orphaned exception runtime test ExceptionRuntime.cpp existed complete and working but was never registered in CMakeLists.txt, so it never built or ran. Wired it in following the existing Guest*.cpp test pattern. The other three orphaned test files (PthreadStart.cpp, FileStreams.cpp, Formatting.cpp) were left out: each has genuine bitrot against current code (a moved header, fseek returning errno instead of throwing on an invalid whence, and vsnprintf's expected va_list mutation) that needs a source-level decision, not a CMake wiring fix. Co-Authored-By: Claude Sonnet 5 --- core/libs/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/libs/CMakeLists.txt b/core/libs/CMakeLists.txt index 2ad90fd7e..ac01dac0e 100644 --- a/core/libs/CMakeLists.txt +++ b/core/libs/CMakeLists.txt @@ -346,6 +346,15 @@ if(BUILD_TESTING) set_tests_properties(guest_strings PROPERTIES ENVIRONMENT_MODIFICATION "PATH=path_list_prepend:$") endif() + add_executable(exception_runtime_tests tests/ExceptionRuntime.cpp) + target_include_directories(exception_runtime_tests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) + target_link_libraries(exception_runtime_tests PRIVATE libc) + configure_windows_unwind(exception_runtime_tests) + add_test(NAME exception_runtime COMMAND exception_runtime_tests) + if(WIN32) + set_tests_properties(exception_runtime PROPERTIES ENVIRONMENT_MODIFICATION + "PATH=path_list_prepend:$") + endif() endif() add_executable(application_heap_tests EXCLUDE_FROM_ALL tests/ApplicationHeap.cpp prx/libc/src/ApplicationHeap.cpp)