summaryrefslogtreecommitdiff
path: root/tests/test_poll.c
diff options
context:
space:
mode:
authorjvoisin2023-06-22 18:33:53 +0200
committerjvoisin2023-06-22 18:33:53 +0200
commit28d61f4202a73fa39d07774c66e1404858adfee9 (patch)
treec90033e7720c64296c036f52cc2da84f796c361d /tests/test_poll.c
parent79447cbb8dc30e2335e3bb186de8e1172b3dff90 (diff)
Add a test for `poll`
Diffstat (limited to 'tests/test_poll.c')
-rw-r--r--tests/test_poll.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_poll.c b/tests/test_poll.c
new file mode 100644
index 0000000..397aa3d
--- /dev/null
+++ b/tests/test_poll.c
@@ -0,0 +1,14 @@
1#include "common.h"
2
3#include <poll.h>
4
5int main(int argc, char** argv) {
6 struct pollfd buffer[12] = {0};
7
8 CHK_FAIL_START
9 poll(buffer, 14, NULL);
10 CHK_FAIL_END
11
12 puts(buffer);
13 return ret;
14}