Lines Matching refs:status

136 	int status;  in attach_child()  local
140 wpid = waitpid(pid, &status, 0); in attach_child()
142 ATF_REQUIRE(WIFSTOPPED(status)); in attach_child()
143 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in attach_child()
186 int status; in ATF_TC_BODY() local
199 wpid = waitpid(child, &status, 0); in ATF_TC_BODY()
201 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
202 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
208 wpid = waitpid(child, &status, 0); in ATF_TC_BODY()
210 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
211 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
214 wpid = waitpid(child, &status, 0); in ATF_TC_BODY()
227 int cpipe[2], status; in ATF_TC_BODY() local
255 wpid = waitpid(child, &status, 0); in ATF_TC_BODY()
257 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
258 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
261 wpid = waitpid(child, &status, 0); in ATF_TC_BODY()
274 int cpipe[2], dpipe[2], status; in ATF_TC_BODY() local
301 wpid = waitpid(child, &status, 0); in ATF_TC_BODY()
303 CHILD_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
304 CHILD_REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
315 wpid = waitpid(child, &status, 0); in ATF_TC_BODY()
317 CHILD_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
318 CHILD_REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
341 wpid = waitpid(child, &status, WNOHANG); in ATF_TC_BODY()
348 wpid = waitpid(debugger, &status, 0); in ATF_TC_BODY()
350 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
351 REQUIRE_EQ(WEXITSTATUS(status), 0); in ATF_TC_BODY()
354 wpid = waitpid(child, &status, WNOHANG); in ATF_TC_BODY()
356 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
357 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
370 int cpipe[2], dpipe[2], status; in ATF_TC_BODY() local
407 wpid = waitpid(child, &status, 0); in ATF_TC_BODY()
409 CHILD_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
410 CHILD_REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
422 wpid = waitpid(child, &status, 0); in ATF_TC_BODY()
424 CHILD_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
425 CHILD_REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
434 wpid = waitpid(debugger, &status, 0); in ATF_TC_BODY()
436 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
437 REQUIRE_EQ(WEXITSTATUS(status), 2); in ATF_TC_BODY()
440 wpid = waitpid(child, &status, WNOHANG); in ATF_TC_BODY()
458 wpid = waitpid(child, &status, WNOHANG); in ATF_TC_BODY()
469 wpid = waitpid(child, &status, WNOHANG); in ATF_TC_BODY()
471 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
472 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
482 int cpipe1[2], cpipe2[2], gcpipe[2], status; in ATF_TC_BODY() local
495 status = 1; in ATF_TC_BODY()
497 n = read(gcpipe[0], &status, sizeof(status)); in ATF_TC_BODY()
499 _exit(status); in ATF_TC_BODY()
504 CHILD_REQUIRE_EQ(read(cpipe2[0], &status, sizeof(status)), in ATF_TC_BODY()
505 (ssize_t)sizeof(status)); in ATF_TC_BODY()
506 _exit(status); in ATF_TC_BODY()
514 status = 0; in ATF_TC_BODY()
515 REQUIRE_EQ(write(cpipe2[1], &status, sizeof(status)), in ATF_TC_BODY()
516 (ssize_t)sizeof(status)); in ATF_TC_BODY()
517 REQUIRE_EQ(waitpid(child, &status, 0), child); in ATF_TC_BODY()
518 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
519 REQUIRE_EQ(WEXITSTATUS(status), 0); in ATF_TC_BODY()
521 status = 0; in ATF_TC_BODY()
522 REQUIRE_EQ(write(gcpipe[1], &status, sizeof(status)), in ATF_TC_BODY()
523 (ssize_t)sizeof(status)); in ATF_TC_BODY()
524 REQUIRE_EQ(waitpid(gchild, &status, 0), gchild); in ATF_TC_BODY()
525 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
527 REQUIRE_EQ(waitpid(gchild, &status, 0), gchild); in ATF_TC_BODY()
528 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
529 REQUIRE_EQ(WEXITSTATUS(status), 0); in ATF_TC_BODY()
547 int status; in follow_fork_parent() local
558 wpid = waitpid(fpid, &status, 0); in follow_fork_parent()
560 CHILD_REQUIRE(WIFEXITED(status)); in follow_fork_parent()
561 CHILD_REQUIRE_EQ(WEXITSTATUS(status), 2); in follow_fork_parent()
577 int i, status; in handle_fork_events() local
589 wpid = wait(&status); in handle_fork_events()
591 ATF_REQUIRE(WIFSTOPPED(status)); in handle_fork_events()
601 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in handle_fork_events()
612 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in handle_fork_events()
636 int status; in ATF_TC_BODY() local
648 wpid = waitpid(children[0], &status, 0); in ATF_TC_BODY()
650 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
651 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
668 wpid = wait(&status); in ATF_TC_BODY()
670 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
671 REQUIRE_EQ(WEXITSTATUS(status), 2); in ATF_TC_BODY()
673 wpid = wait(&status); in ATF_TC_BODY()
675 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
676 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
678 wpid = wait(&status); in ATF_TC_BODY()
692 int status; in ATF_TC_BODY() local
704 wpid = waitpid(children[0], &status, 0); in ATF_TC_BODY()
706 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
707 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
724 wpid = wait(&status); in ATF_TC_BODY()
726 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
727 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
729 wpid = wait(&status); in ATF_TC_BODY()
743 int status; in ATF_TC_BODY() local
755 wpid = waitpid(children[0], &status, 0); in ATF_TC_BODY()
757 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
758 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
779 wpid = wait(&status); in ATF_TC_BODY()
781 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
782 REQUIRE_EQ(WEXITSTATUS(status), 2); in ATF_TC_BODY()
784 wpid = wait(&status); in ATF_TC_BODY()
786 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
787 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
789 wpid = wait(&status); in ATF_TC_BODY()
825 int cpipe[2], status; in ATF_TC_BODY() local
838 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
840 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
841 REQUIRE_EQ(WEXITSTATUS(status), 3); in ATF_TC_BODY()
868 wpid = wait(&status); in ATF_TC_BODY()
870 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
871 REQUIRE_EQ(WEXITSTATUS(status), 2); in ATF_TC_BODY()
873 wpid = wait(&status); in ATF_TC_BODY()
875 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
876 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
878 wpid = wait(&status); in ATF_TC_BODY()
893 int cpipe[2], status; in ATF_TC_BODY() local
906 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
908 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
909 REQUIRE_EQ(WEXITSTATUS(status), 3); in ATF_TC_BODY()
936 wpid = wait(&status); in ATF_TC_BODY()
938 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
939 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
941 wpid = wait(&status); in ATF_TC_BODY()
956 int cpipe[2], status; in ATF_TC_BODY() local
969 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
971 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
972 REQUIRE_EQ(WEXITSTATUS(status), 3); in ATF_TC_BODY()
999 wpid = wait(&status); in ATF_TC_BODY()
1001 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
1002 REQUIRE_EQ(WEXITSTATUS(status), 2); in ATF_TC_BODY()
1004 wpid = wait(&status); in ATF_TC_BODY()
1017 int cpipe[2], dpipe[2], status; in ATF_TC_BODY() local
1049 wpid = waitpid(child, &status, 0); in ATF_TC_BODY()
1051 CHILD_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1052 CHILD_REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
1061 wpid = waitpid(child, &status, 0); in ATF_TC_BODY()
1063 CHILD_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
1064 CHILD_REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
1085 wpid = waitpid(debugger, &status, 0); in ATF_TC_BODY()
1087 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
1088 REQUIRE_EQ(WEXITSTATUS(status), 0); in ATF_TC_BODY()
1091 wpid = waitpid(child, &status, WNOHANG); in ATF_TC_BODY()
1093 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
1094 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
1106 int status; in ATF_TC_BODY() local
1118 wpid = waitpid(children[0], &status, 0); in ATF_TC_BODY()
1120 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1121 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
1145 wpid = wait(&status); in ATF_TC_BODY()
1147 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
1148 REQUIRE_EQ(WEXITSTATUS(status), 2); in ATF_TC_BODY()
1150 wpid = wait(&status); in ATF_TC_BODY()
1152 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
1153 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
1155 wpid = wait(&status); in ATF_TC_BODY()
1169 int status; in ATF_TC_BODY() local
1181 wpid = waitpid(children[0], &status, 0); in ATF_TC_BODY()
1183 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1184 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
1208 wpid = wait(&status); in ATF_TC_BODY()
1210 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
1211 REQUIRE_EQ(WEXITSTATUS(status), 2); in ATF_TC_BODY()
1213 wpid = wait(&status); in ATF_TC_BODY()
1215 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
1216 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
1218 wpid = wait(&status); in ATF_TC_BODY()
1250 int status; in ATF_TC_BODY() local
1259 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1261 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1262 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
1282 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1284 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1285 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
1301 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1303 if (WIFEXITED(status)) in ATF_TC_BODY()
1306 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1307 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
1311 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
1313 wpid = wait(&status); in ATF_TC_BODY()
1327 int status; in ATF_TC_BODY() local
1336 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1338 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1339 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
1351 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1353 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1354 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
1365 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1367 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1368 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
1378 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1379 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
1380 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
1382 wpid = wait(&status); in ATF_TC_BODY()
1416 int status; in ATF_TC_BODY() local
1425 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1427 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1428 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
1440 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1442 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1443 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
1457 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1459 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1460 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
1470 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1471 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1472 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
1482 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1483 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
1484 REQUIRE_EQ(WEXITSTATUS(status), 0); in ATF_TC_BODY()
1486 wpid = wait(&status); in ATF_TC_BODY()
1513 int status; in ATF_TC_BODY() local
1522 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1524 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1525 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
1530 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1531 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1532 REQUIRE_EQ(WSTOPSIG(status), SIGINFO); in ATF_TC_BODY()
1543 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1544 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
1545 REQUIRE_EQ(WEXITSTATUS(status), 0); in ATF_TC_BODY()
1547 wpid = wait(&status); in ATF_TC_BODY()
1559 int events, status; in ATF_TC_BODY() local
1568 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1570 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1571 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
1580 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1581 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
1582 REQUIRE_EQ(WEXITSTATUS(status), 0); in ATF_TC_BODY()
1584 wpid = wait(&status); in ATF_TC_BODY()
1594 int events, status; in ATF_TC_BODY() local
1603 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1605 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1606 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
1615 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1616 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1617 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
1626 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1627 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
1628 REQUIRE_EQ(WEXITSTATUS(status), 0); in ATF_TC_BODY()
1630 wpid = wait(&status); in ATF_TC_BODY()
1639 int events, status; in ATF_TC_BODY() local
1648 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1650 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1651 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
1676 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1677 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
1678 REQUIRE_EQ(WEXITSTATUS(status), 0); in ATF_TC_BODY()
1680 wpid = wait(&status); in ATF_TC_BODY()
1693 int events, status; in ATF_TC_BODY() local
1702 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1704 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1705 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
1717 wpid = wait(&status); in ATF_TC_BODY()
1719 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1720 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
1726 wpid = wait(&status); in ATF_TC_BODY()
1728 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
1729 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
1731 wpid = wait(&status); in ATF_TC_BODY()
1741 int events, status; in ATF_TC_BODY() local
1753 wpid = waitpid(children[0], &status, 0); in ATF_TC_BODY()
1755 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1756 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
1780 wpid = waitpid(children[1], &status, 0); in ATF_TC_BODY()
1782 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
1783 REQUIRE_EQ(WEXITSTATUS(status), 2); in ATF_TC_BODY()
1789 wpid = wait(&status); in ATF_TC_BODY()
1791 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1792 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
1799 wpid = wait(&status); in ATF_TC_BODY()
1801 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
1802 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
1804 wpid = wait(&status); in ATF_TC_BODY()
1818 int status; in ATF_TC_BODY() local
1828 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1830 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1831 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
1837 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1839 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1840 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
1846 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1848 ATF_REQUIRE(WIFSIGNALED(status)); in ATF_TC_BODY()
1849 REQUIRE_EQ(WTERMSIG(status), SIGKILL); in ATF_TC_BODY()
1851 wpid = wait(&status); in ATF_TC_BODY()
1866 int status; in ATF_TC_BODY() local
1876 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1878 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1879 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
1885 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1887 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1888 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
1897 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1899 ATF_REQUIRE(WIFSIGNALED(status)); in ATF_TC_BODY()
1900 REQUIRE_EQ(WTERMSIG(status), SIGKILL); in ATF_TC_BODY()
1902 wpid = wait(&status); in ATF_TC_BODY()
1917 int status; in ATF_TC_BODY() local
1926 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1928 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1929 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
1941 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1943 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
1944 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
1955 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
1957 ATF_REQUIRE(WIFSIGNALED(status)); in ATF_TC_BODY()
1958 REQUIRE_EQ(WTERMSIG(status), SIGKILL); in ATF_TC_BODY()
1960 wpid = wait(&status); in ATF_TC_BODY()
1999 int status; in ATF_TC_BODY() local
2051 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2053 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2054 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
2063 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2065 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2066 REQUIRE_EQ(WSTOPSIG(status), SIGUSR2); in ATF_TC_BODY()
2075 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2077 ATF_REQUIRE(WIFSIGNALED(status)); in ATF_TC_BODY()
2078 REQUIRE_EQ(WTERMSIG(status), SIGKILL); in ATF_TC_BODY()
2080 wpid = wait(&status); in ATF_TC_BODY()
2098 int status; in ATF_TC_BODY() local
2153 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2155 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2156 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
2169 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2171 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2172 if (WSTOPSIG(status) == SIGTRAP) { in ATF_TC_BODY()
2177 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
2186 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2188 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2189 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
2204 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2206 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2207 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
2220 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2222 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2223 REQUIRE_EQ(WSTOPSIG(status), SIGUSR2); in ATF_TC_BODY()
2241 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2243 ATF_REQUIRE(WIFSIGNALED(status)); in ATF_TC_BODY()
2244 REQUIRE_EQ(WTERMSIG(status), SIGKILL); in ATF_TC_BODY()
2246 wpid = wait(&status); in ATF_TC_BODY()
2267 int status; in ATF_TC_BODY() local
2281 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2283 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2284 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
2298 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2300 ATF_REQUIRE(WIFSIGNALED(status)); in ATF_TC_BODY()
2301 REQUIRE_EQ(WTERMSIG(status), SIGKILL); in ATF_TC_BODY()
2303 wpid = wait(&status); in ATF_TC_BODY()
2318 int status; in ATF_TC_BODY() local
2330 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2332 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2333 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
2339 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2341 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2342 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
2356 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2358 if (WIFSTOPPED(status) && WSTOPSIG(status) == SIGTRAP) { in ATF_TC_BODY()
2363 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
2364 REQUIRE_EQ(WEXITSTATUS(status), 2); in ATF_TC_BODY()
2369 wpid = wait(&status); in ATF_TC_BODY()
2395 int status; in ATF_TC_BODY() local
2407 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2409 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2410 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
2416 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2418 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2419 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
2428 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2430 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2431 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
2445 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2447 if (WIFSTOPPED(status) && WSTOPSIG(status) == SIGTRAP) { in ATF_TC_BODY()
2452 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
2453 REQUIRE_EQ(WEXITSTATUS(status), 2); in ATF_TC_BODY()
2458 wpid = wait(&status); in ATF_TC_BODY()
2471 int status; in ATF_TC_BODY() local
2486 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2488 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2489 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
2503 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2505 if (WIFSTOPPED(status)) { in ATF_TC_BODY()
2506 REQUIRE_EQ(WSTOPSIG(status), SIGUSR2); in ATF_TC_BODY()
2513 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
2514 REQUIRE_EQ(WEXITSTATUS(status), 2); in ATF_TC_BODY()
2519 wpid = wait(&status); in ATF_TC_BODY()
2545 int status, err; in ATF_TC_BODY() local
2577 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2579 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2580 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
2595 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2597 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2598 REQUIRE_EQ(WSTOPSIG(status), SIGUSR2); in ATF_TC_BODY()
2603 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2605 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2606 REQUIRE_EQ(WSTOPSIG(status), SIGUSR1); in ATF_TC_BODY()
2614 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2616 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
2617 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
2619 wpid = wait(&status); in ATF_TC_BODY()
2633 int status; in ATF_TC_BODY() local
2643 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2645 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2646 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
2654 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2656 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2657 REQUIRE_EQ(WSTOPSIG(status), SIGINT); in ATF_TC_BODY()
2670 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2672 ATF_REQUIRE(WIFSIGNALED(status)); in ATF_TC_BODY()
2673 REQUIRE_EQ(WTERMSIG(status), SIGTERM); in ATF_TC_BODY()
2675 wpid = wait(&status); in ATF_TC_BODY()
2691 int status; in ATF_TC_BODY() local
2704 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2706 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2707 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
2713 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2715 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2716 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
2729 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2731 if (WIFSTOPPED(status) && WSTOPSIG(status) == SIGTRAP) { in ATF_TC_BODY()
2736 ATF_REQUIRE(WIFSIGNALED(status)); in ATF_TC_BODY()
2737 REQUIRE_EQ(WTERMSIG(status), SIGTRAP); in ATF_TC_BODY()
2742 wpid = wait(&status); in ATF_TC_BODY()
2755 int status; in ATF_TC_BODY() local
2767 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2769 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2770 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
2776 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2778 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2779 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
2788 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2790 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2791 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
2803 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2805 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2806 REQUIRE_EQ(WSTOPSIG(status), SIGABRT); in ATF_TC_BODY()
2821 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2823 if (WIFSTOPPED(status) && WSTOPSIG(status) == SIGTRAP) { in ATF_TC_BODY()
2828 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
2829 REQUIRE_EQ(WEXITSTATUS(status), 2); in ATF_TC_BODY()
2834 wpid = wait(&status); in ATF_TC_BODY()
2846 int status, kq, nevents; in ATF_TC_BODY() local
2873 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2875 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2876 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
2884 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2886 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
2887 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
2889 wpid = wait(&status); in ATF_TC_BODY()
2937 int status, err; in ATF_TC_BODY() local
2965 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2967 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2968 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
2979 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2981 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
2982 REQUIRE_EQ(WSTOPSIG(status), SIGUSR1); in ATF_TC_BODY()
2990 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
2992 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
2993 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
2995 wpid = wait(&status); in ATF_TC_BODY()
3009 int status, err; in ATF_TC_BODY() local
3038 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3040 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
3041 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
3049 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3051 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
3052 REQUIRE_EQ(WSTOPSIG(status), SIGUSR1); in ATF_TC_BODY()
3060 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3062 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
3063 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
3065 wpid = wait(&status); in ATF_TC_BODY()
3080 int status, err; in ATF_TC_BODY() local
3135 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3137 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
3138 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
3150 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3152 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
3153 REQUIRE_EQ(WSTOPSIG(status), SIGUSR2); in ATF_TC_BODY()
3159 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3161 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
3162 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
3170 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3172 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
3173 REQUIRE_EQ(WSTOPSIG(status), SIGUSR2); in ATF_TC_BODY()
3179 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3181 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
3182 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
3184 wpid = wait(&status); in ATF_TC_BODY()
3201 int status; in ATF_TC_BODY() local
3210 wpid = waitpid(child, &status, 0); in ATF_TC_BODY()
3212 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
3213 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
3249 wpid = waitpid(child, &status, 0); in ATF_TC_BODY()
3251 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
3252 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
3255 wpid = waitpid(child, &status, 0); in ATF_TC_BODY()
3280 int status, i; in terminate_with_pending_sigstop() local
3332 wpid = waitpid(fpid, &status, 0); in terminate_with_pending_sigstop()
3334 CHILD_REQUIRE(WIFSTOPPED(status)); in terminate_with_pending_sigstop()
3335 CHILD_REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in terminate_with_pending_sigstop()
3340 wpid = waitpid(fpid, &status, 0); in terminate_with_pending_sigstop()
3342 CHILD_REQUIRE(WIFSTOPPED(status)); in terminate_with_pending_sigstop()
3343 CHILD_REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in terminate_with_pending_sigstop()
3359 wpid = wait(&status); in terminate_with_pending_sigstop()
3361 ATF_REQUIRE(WIFEXITED(status)); in terminate_with_pending_sigstop()
3362 REQUIRE_EQ(WEXITSTATUS(status), 0); in terminate_with_pending_sigstop()
3364 ATF_REQUIRE(WIFSIGNALED(status)); in terminate_with_pending_sigstop()
3365 REQUIRE_EQ(WTERMSIG(status), SIGKILL); in terminate_with_pending_sigstop()
3414 int status, event_mask, new_event_mask; in ATF_TC_BODY() local
3424 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3426 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
3427 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
3441 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3443 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
3444 REQUIRE_EQ(WSTOPSIG(status), SIGKILL); in ATF_TC_BODY()
3454 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3456 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
3457 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
3469 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3470 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
3471 REQUIRE_EQ(WEXITSTATUS(status), 0); in ATF_TC_BODY()
3473 wpid = wait(&status); in ATF_TC_BODY()
3501 int error, fd, i, status; in ATF_TC_BODY() local
3556 wpid = waitpid(child, &status, WNOHANG); in ATF_TC_BODY()
3557 if (wpid == child && WIFSTOPPED(status) && in ATF_TC_BODY()
3558 WSTOPSIG(status) == SIGSTOP) in ATF_TC_BODY()
3589 int status; in ATF_TC_BODY() local
3600 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3602 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
3603 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
3608 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3610 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
3611 REQUIRE_EQ(WSTOPSIG(status), SIGABRT); in ATF_TC_BODY()
3621 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3623 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
3624 REQUIRE_EQ(WSTOPSIG(status), SIGABRT); in ATF_TC_BODY()
3634 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3636 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
3637 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
3648 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3649 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
3650 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
3652 wpid = wait(&status); in ATF_TC_BODY()
3667 int status; in ATF_TC_BODY() local
3677 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3679 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
3680 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
3686 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3688 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
3689 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
3700 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3702 ATF_REQUIRE(WIFSIGNALED(status)); in ATF_TC_BODY()
3703 REQUIRE_EQ(WTERMSIG(status), SIGKILL); in ATF_TC_BODY()
3705 wpid = wait(&status); in ATF_TC_BODY()
3720 int status; in ATF_TC_BODY() local
3729 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3731 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
3732 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
3738 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3740 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
3741 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
3752 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3753 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
3754 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
3756 wpid = wait(&status); in ATF_TC_BODY()
3796 int i, j, status; in ATF_TC_BODY() local
3805 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3807 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
3808 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
3819 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3821 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
3822 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
3838 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3840 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
3841 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
3855 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3857 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
3858 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
3884 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3886 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
3887 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
3924 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3925 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
3926 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
3928 wpid = wait(&status); in ATF_TC_BODY()
3942 int events, status; in ATF_TC_BODY() local
3952 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3954 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
3955 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
3960 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3962 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
3963 REQUIRE_EQ(WSTOPSIG(status), SIGABRT); in ATF_TC_BODY()
3979 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3981 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
3982 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
3997 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
3998 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
3999 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
4001 wpid = wait(&status); in ATF_TC_BODY()
4016 int events, status; in ATF_TC_BODY() local
4028 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
4030 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
4031 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
4042 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
4044 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
4045 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
4056 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
4058 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
4059 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
4075 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
4077 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
4078 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
4095 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
4097 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
4098 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
4113 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
4115 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
4116 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
4132 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
4134 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
4135 REQUIRE_EQ(WSTOPSIG(status), SIGTRAP); in ATF_TC_BODY()
4154 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
4155 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
4156 REQUIRE_EQ(WEXITSTATUS(status), 1); in ATF_TC_BODY()
4158 wpid = wait(&status); in ATF_TC_BODY()
4176 int pd, status; in ATF_TC_BODY() local
4191 wpid = waitpid(traced, &status, 0); in ATF_TC_BODY()
4193 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
4194 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
4199 wpid = wait(&status); in ATF_TC_BODY()
4207 wpid = waitpid(debuger, &status, 0); in ATF_TC_BODY()
4209 REQUIRE_EQ(WEXITSTATUS(status), 0); in ATF_TC_BODY()
4212 wpid = wait(&status); in ATF_TC_BODY()
4225 int pd, status; in ATF_TC_BODY() local
4236 wpid = waitpid(child, &status, 0); in ATF_TC_BODY()
4238 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
4239 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
4243 wpid = wait(&status); in ATF_TC_BODY()
4245 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
4246 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
4254 wpid = wait(&status); in ATF_TC_BODY()
4269 int pd, status; in ATF_TC_BODY() local
4280 REQUIRE_EQ(traced, waitpid(traced, &status, WSTOPPED)); in ATF_TC_BODY()
4286 wpid = waitpid(traced, &status, 0); in ATF_TC_BODY()
4288 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
4289 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
4293 wpid = waitpid(traced, &status, 0); in ATF_TC_BODY()
4295 ATF_REQUIRE(WIFEXITED(status)); in ATF_TC_BODY()
4296 REQUIRE_EQ(WEXITSTATUS(status), 0); in ATF_TC_BODY()
4303 wpid = waitpid(debuger, &status, 0); in ATF_TC_BODY()
4305 REQUIRE_EQ(WEXITSTATUS(status), 0); in ATF_TC_BODY()
4311 wpid = wait(&status); in ATF_TC_BODY()
4326 int status; in ATF_TC_BODY() local
4347 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
4349 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
4350 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
4363 wpid = waitpid(fpid, &status, 0); in ATF_TC_BODY()
4365 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
4366 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()
4380 int error, status; in ATF_TC_BODY() local
4392 wpid = waitpid(debuggee, &status, 0); in ATF_TC_BODY()
4394 ATF_REQUIRE(WIFSTOPPED(status)); in ATF_TC_BODY()
4395 REQUIRE_EQ(WSTOPSIG(status), SIGSTOP); in ATF_TC_BODY()