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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01R5WJS4ZdQynAJesCZKH5hb
This commit is contained in:
parent
bdeeb17326
commit
2cd813da97
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue