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:
STL1te
2026-09-30 09:34:57 +03:00
parent 5cf8ffa090
commit ee942805cd
+1 -1
View File
@@ -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()