summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux/epoll.cc
diff options
context:
space:
mode:
authorAdam Barth <abarth@google.com>2021-05-21 20:17:34 -0700
committergVisor bot <gvisor-bot@google.com>2021-05-21 20:20:49 -0700
commitf77a24966e75271a30ee5a4eefdb90edc2eacb9e (patch)
tree9256b42dd9a91ea3f34b93ee6f391045ccd31d24 /test/syscalls/linux/epoll.cc
parent7675ccfc1a5509aa2a256dc30cc435d92204c130 (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.cc4
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];