diff options
author | Adam Barth <abarth@google.com> | 2021-05-21 20:17:34 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-05-21 20:20:49 -0700 |
commit | f77a24966e75271a30ee5a4eefdb90edc2eacb9e (patch) | |
tree | 9256b42dd9a91ea3f34b93ee6f391045ccd31d24 /test/syscalls/linux/epoll.cc | |
parent | 7675ccfc1a5509aa2a256dc30cc435d92204c130 (diff) |
Make many tests build with NDK.
Not all the tests build yet, but many of them do now.
PiperOrigin-RevId: 375209824
Diffstat (limited to 'test/syscalls/linux/epoll.cc')
-rw-r--r-- | test/syscalls/linux/epoll.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/syscalls/linux/epoll.cc b/test/syscalls/linux/epoll.cc index af3d27894..3ef8b0327 100644 --- a/test/syscalls/linux/epoll.cc +++ b/test/syscalls/linux/epoll.cc @@ -230,6 +230,8 @@ TEST(EpollTest, WaitThenUnblock) { EXPECT_THAT(pthread_detach(thread), SyscallSucceeds()); } +#ifndef ANDROID // Android does not support pthread_cancel + void sighandler(int s) {} void* signaler(void* arg) { @@ -272,6 +274,8 @@ TEST(EpollTest, UnblockWithSignal) { EXPECT_THAT(pthread_detach(thread), SyscallSucceeds()); } +#endif // ANDROID + TEST(EpollTest, TimeoutNoFds) { auto epollfd = ASSERT_NO_ERRNO_AND_VALUE(NewEpollFD()); struct epoll_event result[kFDsPerEpoll]; |