summaryrefslogtreecommitdiff
path: root/tests/epoll_create1.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/epoll_create1.c')
-rw-r--r--tests/epoll_create1.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/epoll_create1.c b/tests/epoll_create1.c
index 79196a4c6..4d2e10779 100644
--- a/tests/epoll_create1.c
+++ b/tests/epoll_create1.c
@@ -28,6 +28,7 @@
#include "tests.h"
#include <assert.h>
#include <fcntl.h>
+#include <stdio.h>
#include <unistd.h>
#include <sys/syscall.h>
@@ -37,9 +38,15 @@ int
main(void)
{
(void) close(0);
+
if (syscall(__NR_epoll_create1, O_CLOEXEC))
perror_msg_and_skip("epoll_create1 O_CLOEXEC");
+ puts("epoll_create1(EPOLL_CLOEXEC) = 0");
+
assert(syscall(__NR_epoll_create1, O_CLOEXEC | O_NONBLOCK) == -1);
+ printf("epoll_create1(EPOLL_CLOEXEC|%#x) = -1 EINVAL (%m)\n", O_NONBLOCK);
+
+ puts("+++ exited with 0 +++");
return 0;
}