tests: don't use ASSERT_THAT after fork
PiperOrigin-RevId: 277965624
This commit is contained in:
parent
a99d3479a8
commit
af6af2c341
|
@ -447,9 +447,8 @@ TEST(SemaphoreTest, SemCtlGetPidFork) {
|
||||||
|
|
||||||
const pid_t child_pid = fork();
|
const pid_t child_pid = fork();
|
||||||
if (child_pid == 0) {
|
if (child_pid == 0) {
|
||||||
ASSERT_THAT(semctl(sem.get(), 0, SETVAL, 1), SyscallSucceeds());
|
TEST_PCHECK(semctl(sem.get(), 0, SETVAL, 1) == 0);
|
||||||
ASSERT_THAT(semctl(sem.get(), 0, GETPID),
|
TEST_PCHECK(semctl(sem.get(), 0, GETPID) == getpid());
|
||||||
SyscallSucceedsWithValue(getpid()));
|
|
||||||
|
|
||||||
_exit(0);
|
_exit(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue