| 74 | |
| 75 | #ifndef _WIN32 |
| 76 | static void * |
| 77 | do_fork_thd(void *arg) { |
| 78 | malloc(1); |
| 79 | int pid = fork(); |
| 80 | if (pid == -1) { |
| 81 | /* Error. */ |
| 82 | test_fail("Unexpected fork() failure"); |
| 83 | } else if (pid == 0) { |
| 84 | /* Child. */ |
| 85 | char *args[] = {"true", NULL}; |
| 86 | execvp(args[0], args); |
| 87 | test_fail("Exec failed"); |
| 88 | } else { |
| 89 | /* Parent */ |
| 90 | wait_for_child_exit(pid); |
| 91 | } |
| 92 | return NULL; |
| 93 | } |
| 94 | #endif |
| 95 | |
| 96 | #ifndef _WIN32 |
no test coverage detected