From 2cd813da978b8ad0add6250144b6ceeaf782e81e Mon Sep 17 00:00:00 2001 From: Alberto Ruiz Date: Tue, 6 Oct 2026 19:04:20 +0200 Subject: [PATCH] test(json2): unwind guest_json_tests on Windows The test now catches the exception that Parser::parse throws for a number that overflows a double. Windows test executables need configure_windows_unwind, as guest_png_dec_tests has, or the exception cannot be unwound and the process terminates. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01R5WJS4ZdQynAJesCZKH5hb --- core/libs/prx/libSceJson2/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/core/libs/prx/libSceJson2/CMakeLists.txt b/core/libs/prx/libSceJson2/CMakeLists.txt index d1cd90d94..acfda4947 100644 --- a/core/libs/prx/libSceJson2/CMakeLists.txt +++ b/core/libs/prx/libSceJson2/CMakeLists.txt @@ -12,6 +12,7 @@ if(BUILD_TESTING) add_test_executable(guest_json_tests ${LIBS_INCLUDE_DIR}/tests/GuestJson.cpp) target_include_directories(guest_json_tests PRIVATE ${LIBS_INCLUDE_DIR}) target_link_libraries(guest_json_tests PRIVATE libSceJson2 libc) + configure_windows_unwind(guest_json_tests) add_test(NAME guest_json COMMAND guest_json_tests) if(WIN32) set_tests_properties(guest_json PROPERTIES ENVIRONMENT_MODIFICATION