diff options
author | Michael Pratt <mpratt@google.com> | 2019-08-22 13:19:47 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-08-22 13:21:04 -0700 |
commit | 52e674b44d77b0a227d2b74dd75ae29c036fb01b (patch) | |
tree | a458003138496f341688de13adbb2b1f76227b2a | |
parent | 8d9276ed564ffef5d12426e839aeef7de5164d7d (diff) |
Remove ASSERT from fork child
The gunit macros are not safe to use in the child.
PiperOrigin-RevId: 264904348
-rw-r--r-- | test/syscalls/linux/pty_root.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/syscalls/linux/pty_root.cc b/test/syscalls/linux/pty_root.cc index 14a4af980..d2a321a6e 100644 --- a/test/syscalls/linux/pty_root.cc +++ b/test/syscalls/linux/pty_root.cc @@ -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. |