diff options
author | Andrei Vagin <avagin@google.com> | 2019-11-01 11:21:06 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-11-01 11:22:21 -0700 |
commit | af6af2c34131c4ec5e3195be99c1deb6a2669c06 (patch) | |
tree | fe280d1d8e8fed74967a7df9ecafdcd67cefc395 /test | |
parent | a99d3479a84ca86843e500dbdf58db0af389b536 (diff) |
tests: don't use ASSERT_THAT after fork
PiperOrigin-RevId: 277965624
Diffstat (limited to 'test')
-rw-r--r-- | test/syscalls/linux/semaphore.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/syscalls/linux/semaphore.cc b/test/syscalls/linux/semaphore.cc index 40c57f543..e9b131ca9 100644 --- a/test/syscalls/linux/semaphore.cc +++ b/test/syscalls/linux/semaphore.cc @@ -447,9 +447,8 @@ TEST(SemaphoreTest, SemCtlGetPidFork) { const pid_t child_pid = fork(); if (child_pid == 0) { - ASSERT_THAT(semctl(sem.get(), 0, SETVAL, 1), SyscallSucceeds()); - ASSERT_THAT(semctl(sem.get(), 0, GETPID), - SyscallSucceedsWithValue(getpid())); + TEST_PCHECK(semctl(sem.get(), 0, SETVAL, 1) == 0); + TEST_PCHECK(semctl(sem.get(), 0, GETPID) == getpid()); _exit(0); } |