mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-10 01:28:44 +02:00
test(libc): guest_formatting runs only on Windows
It checks the Windows formatter (the guest va_list must stay untouched). On Linux the guest variadic path hands the call to glibc, which advances the va_list, and snprintf_nid_postfix with arguments on the stack crashes; upstream never registered this test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -462,8 +462,8 @@ if(BUILD_TESTING)
|
||||
target_include_directories(guest_formatting_tests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_link_libraries(guest_formatting_tests PRIVATE libc)
|
||||
configure_windows_unwind(guest_formatting_tests)
|
||||
add_test(NAME guest_formatting COMMAND guest_formatting_tests)
|
||||
if(WIN32)
|
||||
add_test(NAME guest_formatting COMMAND guest_formatting_tests)
|
||||
set_tests_properties(guest_formatting PROPERTIES ENVIRONMENT_MODIFICATION
|
||||
"PATH=path_list_prepend:$<TARGET_FILE_DIR:libc>")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user