From ee942805cd189edbb60c2d3a84e6a6fc02f116e7 Mon Sep 17 00:00:00 2001 From: STL1te Date: Wed, 30 Sep 2026 09:34:57 +0300 Subject: [PATCH] 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 --- core/libs/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/libs/CMakeLists.txt b/core/libs/CMakeLists.txt index 3aeac5508..f44ae80e3 100644 --- a/core/libs/CMakeLists.txt +++ b/core/libs/CMakeLists.txt @@ -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:$") endif()