git: d84d733edc0b - stable/13 - fdgrowtable tests: Address a set-but-not-used warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 06 Apr 2023 15:07:09 UTC
The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=d84d733edc0b48f809cc25a96e5bb234138e3783 commit d84d733edc0b48f809cc25a96e5bb234138e3783 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2023-03-30 17:53:48 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2023-04-06 14:58:05 +0000 fdgrowtable tests: Address a set-but-not-used warning MFC after: 1 week (cherry picked from commit 889b5662ce06ad01f87f1e501dc56c7bc50bbf9b) --- tests/sys/kern/fdgrowtable_test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/sys/kern/fdgrowtable_test.c b/tests/sys/kern/fdgrowtable_test.c index 794342eaa808..023a25ffe5e6 100644 --- a/tests/sys/kern/fdgrowtable_test.c +++ b/tests/sys/kern/fdgrowtable_test.c @@ -233,6 +233,7 @@ ATF_TC_BODY(oldtables_shared_via_process, tc) /* get current status of child */ wpid = waitpid(child, &status, WUNTRACED); + ATF_REQUIRE(wpid == child); /* child should be stopped */ ATF_REQUIRE(WIFSTOPPED(status)); @@ -254,6 +255,7 @@ ATF_TC_BODY(oldtables_shared_via_process, tc) /* child should have exited */ wpid = waitpid(child, &status, 0); + ATF_REQUIRE(wpid == child); ATF_REQUIRE(WIFEXITED(status)); ATF_REQUIRE(WEXITSTATUS(status) == 127); }