From ceddbfad1122bcb4de7bc2d4ad62607bb170e972 Mon Sep 17 00:00:00 2001 From: Daniele Zannotti Date: Tue, 29 Sep 2026 19:57:30 +0100 Subject: [PATCH] tests : build test-qsa-fast on Windows setenv/unsetenv do not exist on Windows, which breaks the Windows jobs of CI (vulkan) on master since 27c308e9c. Map them to _putenv_s, where an empty value removes the variable. Assisted-by: Claude Opus 5.5 Co-Authored-By: Claude Opus 5.5 --- tests/test-qsa-fast.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test-qsa-fast.cpp b/tests/test-qsa-fast.cpp index 537953bec16f..8e0c20b1980e 100644 --- a/tests/test-qsa-fast.cpp +++ b/tests/test-qsa-fast.cpp @@ -6,6 +6,13 @@ #include #include +#ifdef _WIN32 +#include +// Windows has no setenv/unsetenv; an empty value removes the variable +static int setenv(const char * name, const char * value, int) { return _putenv_s(name, value); } +static int unsetenv(const char * name) { return _putenv_s(name, ""); } +#endif + // Host-side regression for the qsa_fast gate lifted from 127 to 512 tokens: // incremental indexer-key pooling must select exactly the touched blocks, and // must stay off when the prefix, the commit state or the size guard does not hold.