diff options
| author | Josh Gao <jmgao@google.com> | 2020-04-29 17:06:14 -0700 |
|---|---|---|
| committer | Josh Gao <jmgao@google.com> | 2020-04-29 18:55:01 -0700 |
| commit | 143e2ae8071ac3c9c0d51c92facd2031478986ad (patch) | |
| tree | b0d99a27587ed9fc6e90dbf58547a970ba22658b /tests | |
| parent | 9c3b21135b708c3333bc731c677394748555b0b8 (diff) | |
fdtrack: add wrappers for epoll_create, epoll_create1.
Bug: https://issuetracker.google.com/154450436
Test: bionic-unit-tests
Change-Id: I6c881e5d67596c543526536541d5b8086e21d9e9
(cherry picked from commit a38331d833fb74607e964b0749427415545018fe)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/fdtrack_test.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/fdtrack_test.cpp b/tests/fdtrack_test.cpp index 4e6feed38..4b289e91b 100644 --- a/tests/fdtrack_test.cpp +++ b/tests/fdtrack_test.cpp @@ -22,6 +22,7 @@ #include <fcntl.h> #include <netinet/in.h> #include <stdlib.h> +#include <sys/epoll.h> #include <sys/types.h> #include <unistd.h> @@ -201,6 +202,9 @@ FDTRACK_TEST(pipe2, ({ fds; })); +FDTRACK_TEST(epoll_create, epoll_create(1)); +FDTRACK_TEST(epoll_create1, epoll_create1(0)); + #if 0 // Why is this generating an extra socket/close event? FDTRACK_TEST(accept, ({ |
