From 52303157bf9c0d1152a844a5ca9735e2d75c7d1a Mon Sep 17 00:00:00 2001 From: Martin Vogel Date: Thu, 6 Aug 2026 03:30:32 +0200 Subject: [PATCH] fix(test): guard the POSIX-only includes in the gitignore test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit sys/wait.h does not exist on the Windows toolchain, so the unguarded include broke the Windows test build outright — the suites never ran. The test body is already skipped on Windows, so the includes belong behind the same guard, as test_cypher.c does for the same pair. Signed-off-by: Martin Vogel --- tests/test_gitignore.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_gitignore.c b/tests/test_gitignore.c index 0541e7fcc..7cae17362 100644 --- a/tests/test_gitignore.c +++ b/tests/test_gitignore.c @@ -7,8 +7,10 @@ #include "test_framework.h" #include "discover/discover.h" #include /* strdup (test seam) */ +#ifndef _WIN32 #include /* fork/waitpid crash-isolation for the backtracking budget */ -#include +#include /* alarm() as the liveness backstop */ +#endif /* ── Basic pattern matching ────────────────────────────────────── */