Remove ASSERT from fork child

The gunit macros are not safe to use in the child.

PiperOrigin-RevId: 264904348
This commit is contained in:
Michael Pratt 2019-08-22 13:19:47 -07:00 committed by gVisor bot
parent 8d9276ed56
commit 52e674b44d
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ TEST(JobControlRootTest, StealTTY) {
// of 1.
pid_t child = fork();
if (!child) {
ASSERT_THAT(setsid(), SyscallSucceeds());
TEST_PCHECK(setsid() >= 0);
// We shouldn't be able to steal the terminal with the wrong arg value.
TEST_PCHECK(ioctl(slave.get(), TIOCSCTTY, 0));
// We should be able to steal it here.