mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-26 00:53:34 +03:00
Don't test fork() on Windows.
This commit is contained in:
parent
2687a72087
commit
21e33ed317
1 changed files with 6 additions and 0 deletions
|
|
@ -1,9 +1,12 @@
|
||||||
#include "test/jemalloc_test.h"
|
#include "test/jemalloc_test.h"
|
||||||
|
|
||||||
|
#ifndef _WIN32
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
TEST_BEGIN(test_fork)
|
TEST_BEGIN(test_fork)
|
||||||
{
|
{
|
||||||
|
#ifndef _WIN32
|
||||||
void *p;
|
void *p;
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
|
|
||||||
|
|
@ -27,6 +30,9 @@ TEST_BEGIN(test_fork)
|
||||||
test_fail("Unexpected waitpid() failure");
|
test_fail("Unexpected waitpid() failure");
|
||||||
} while (!WIFEXITED(status) && !WIFSIGNALED(status));
|
} while (!WIFEXITED(status) && !WIFSIGNALED(status));
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
test_skip("fork(2) is irrelevant to Windows");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
TEST_END
|
TEST_END
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue