Skip to content

Commit 5230315

Browse files
committed
fix(test): guard the POSIX-only includes in the gitignore test
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 <martin.vogel.tech@gmail.com>
1 parent c647879 commit 5230315

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎tests/test_gitignore.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
#include "test_framework.h"
88
#include "discover/discover.h"
99
#include <string.h> /* strdup (test seam) */
10+
#ifndef _WIN32
1011
#include <sys/wait.h> /* fork/waitpid crash-isolation for the backtracking budget */
11-
#include <unistd.h>
12+
#include <unistd.h> /* alarm() as the liveness backstop */
13+
#endif
1214

1315
/* ── Basic pattern matching ────────────────────────────────────── */
1416

0 commit comments

Comments
 (0)