diff options
author | Andrei Vagin <avagin@google.com> | 2019-11-13 15:34:47 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-11-13 15:48:12 -0800 |
commit | 1e55eb3800a60c1a1118b84f2534b78481702f38 (patch) | |
tree | 4afcc0c633502d299dbb8324a5d12e93c995062a /test/syscalls/linux/proc.cc | |
parent | 6dd4c9ee74828b27cd12ea343756f5625bae683c (diff) |
test/syscalls/proc: check an return code of waitid
PiperOrigin-RevId: 280295208
Diffstat (limited to 'test/syscalls/linux/proc.cc')
-rw-r--r-- | test/syscalls/linux/proc.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/syscalls/linux/proc.cc b/test/syscalls/linux/proc.cc index e4c030bbb..512de5ee0 100644 --- a/test/syscalls/linux/proc.cc +++ b/test/syscalls/linux/proc.cc @@ -183,7 +183,8 @@ PosixError WithSubprocess(SubprocessCallback const& running, siginfo_t info; // Wait until the child process has exited (WEXITED flag) but don't // reap the child (WNOWAIT flag). - waitid(P_PID, child_pid, &info, WNOWAIT | WEXITED); + EXPECT_THAT(waitid(P_PID, child_pid, &info, WNOWAIT | WEXITED), + SyscallSucceeds()); if (zombied) { // Arg of "Z" refers to a Zombied Process. |