fdgrowtable tests: Address a set-but-not-used warning
MFC after: 1 week
This commit is contained in:
parent
5ea1e35d7d
commit
889b5662ce
@ -233,6 +233,7 @@ ATF_TC_BODY(oldtables_shared_via_process, tc)
|
|||||||
|
|
||||||
/* get current status of child */
|
/* get current status of child */
|
||||||
wpid = waitpid(child, &status, WUNTRACED);
|
wpid = waitpid(child, &status, WUNTRACED);
|
||||||
|
ATF_REQUIRE(wpid == child);
|
||||||
|
|
||||||
/* child should be stopped */
|
/* child should be stopped */
|
||||||
ATF_REQUIRE(WIFSTOPPED(status));
|
ATF_REQUIRE(WIFSTOPPED(status));
|
||||||
@ -254,6 +255,7 @@ ATF_TC_BODY(oldtables_shared_via_process, tc)
|
|||||||
|
|
||||||
/* child should have exited */
|
/* child should have exited */
|
||||||
wpid = waitpid(child, &status, 0);
|
wpid = waitpid(child, &status, 0);
|
||||||
|
ATF_REQUIRE(wpid == child);
|
||||||
ATF_REQUIRE(WIFEXITED(status));
|
ATF_REQUIRE(WIFEXITED(status));
|
||||||
ATF_REQUIRE(WEXITSTATUS(status) == 127);
|
ATF_REQUIRE(WEXITSTATUS(status) == 127);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user