From 21e33ed317cef444d7e9421998ae3e39b2c93b6d Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Tue, 3 May 2016 17:18:34 -0700 Subject: [PATCH] Don't test fork() on Windows. --- test/unit/fork.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/unit/fork.c b/test/unit/fork.c index 890bc869..c0d5642d 100644 --- a/test/unit/fork.c +++ b/test/unit/fork.c @@ -1,9 +1,12 @@ #include "test/jemalloc_test.h" +#ifndef _WIN32 #include +#endif TEST_BEGIN(test_fork) { +#ifndef _WIN32 void *p; pid_t pid; @@ -27,6 +30,9 @@ TEST_BEGIN(test_fork) test_fail("Unexpected waitpid() failure"); } while (!WIFEXITED(status) && !WIFSIGNALED(status)); } +#else + test_skip("fork(2) is irrelevant to Windows"); +#endif } TEST_END