summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2019-08-22 13:19:47 -0700
committergVisor bot <gvisor-bot@google.com>2019-08-22 13:21:04 -0700
commit52e674b44d77b0a227d2b74dd75ae29c036fb01b (patch)
treea458003138496f341688de13adbb2b1f76227b2a /test/syscalls/linux
parent8d9276ed564ffef5d12426e839aeef7de5164d7d (diff)
Remove ASSERT from fork child
The gunit macros are not safe to use in the child. PiperOrigin-RevId: 264904348
Diffstat (limited to 'test/syscalls/linux')
-rw-r--r--test/syscalls/linux/pty_root.cc2
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.