mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-10 01:28:44 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user