diff --git a/test/syscalls/linux/pty.cc b/test/syscalls/linux/pty.cc index 93e97674e..6aba0ae86 100644 --- a/test/syscalls/linux/pty.cc +++ b/test/syscalls/linux/pty.cc @@ -1653,6 +1653,7 @@ TEST_F(JobControlTest, SetForegroundProcessGroupSIGTTOUBackground) { int wstatus; TEST_PCHECK(waitpid(grandchild, &wstatus, WSTOPPED) == grandchild); TEST_PCHECK(WSTOPSIG(wstatus) == SIGTTOU); + EXPECT_THAT(kill(grandchild, SIGKILL), SyscallSucceeds()); }); ASSERT_NO_ERRNO(res); }