mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Remove ASSERT from fork child
The gunit macros are not safe to use in the child. PiperOrigin-RevId: 264904348
This commit is contained in:
committed by
gVisor bot
parent
8d9276ed56
commit
52e674b44d
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user