]>
git.proxmox.com Git - rustc.git/blob - src/jemalloc/test/unit/fork.c
1 #include "test/jemalloc_test.h"
14 assert_ptr_not_null(p
, "Unexpected malloc() failure");
21 assert_ptr_not_null(p
, "Unexpected malloc() failure");
26 test_fail("Unexpected fork() failure");
27 } else if (pid
== 0) {
35 if (waitpid(pid
, &status
, 0) == -1)
36 test_fail("Unexpected waitpid() failure");
37 if (WIFSIGNALED(status
)) {
38 test_fail("Unexpected child termination due to "
39 "signal %d", WTERMSIG(status
));
42 if (WIFEXITED(status
)) {
43 if (WEXITSTATUS(status
) != 0) {
45 "Unexpected child exit value %d",
53 test_skip("fork(2) is irrelevant to Windows");