Remove ASSERT from fork child
The gunit macros are not safe to use in the child. PiperOrigin-RevId: 264904348
This commit is contained in:
parent
8d9276ed56
commit
52e674b44d
|
@ -50,7 +50,7 @@ TEST(JobControlRootTest, StealTTY) {
|
||||||
// of 1.
|
// of 1.
|
||||||
pid_t child = fork();
|
pid_t child = fork();
|
||||||
if (!child) {
|
if (!child) {
|
||||||
ASSERT_THAT(setsid(), SyscallSucceeds());
|
TEST_PCHECK(setsid() >= 0);
|
||||||
// We shouldn't be able to steal the terminal with the wrong arg value.
|
// We shouldn't be able to steal the terminal with the wrong arg value.
|
||||||
TEST_PCHECK(ioctl(slave.get(), TIOCSCTTY, 0));
|
TEST_PCHECK(ioctl(slave.get(), TIOCSCTTY, 0));
|
||||||
// We should be able to steal it here.
|
// We should be able to steal it here.
|
||||||
|
|
Loading…
Reference in New Issue