Skip to content

Commit 21e33ed

Browse files
committed
Don't test fork() on Windows.
1 parent 2687a72 commit 21e33ed

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/unit/fork.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
#include "test/jemalloc_test.h"
22

3+
#ifndef _WIN32
34
#include <sys/wait.h>
5+
#endif
46

57
TEST_BEGIN(test_fork)
68
{
9+
#ifndef _WIN32
710
void *p;
811
pid_t pid;
912

@@ -27,6 +30,9 @@ TEST_BEGIN(test_fork)
2730
test_fail("Unexpected waitpid() failure");
2831
} while (!WIFEXITED(status) && !WIFSIGNALED(status));
2932
}
33+
#else
34+
test_skip("fork(2) is irrelevant to Windows");
35+
#endif
3036
}
3137
TEST_END
3238

0 commit comments

Comments
 (0)