summaryrefslogtreecommitdiff
path: root/tests/test_poll_static.c
diff options
context:
space:
mode:
authorjvoisin2023-07-11 00:14:13 +0200
committerjvoisin2023-07-11 00:18:32 +0200
commit8b6129312db7b2405f883c4080b835c69a855627 (patch)
tree3fae0f94c33537db91c4c8488e78f467371f12b0 /tests/test_poll_static.c
parent759cb4697e9bba06a5aabad9899d0700f57051da (diff)
Add more dynamic tests
Diffstat (limited to 'tests/test_poll_static.c')
-rw-r--r--tests/test_poll_static.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_poll_static.c b/tests/test_poll_static.c
new file mode 100644
index 0000000..b3dfd50
--- /dev/null
+++ b/tests/test_poll_static.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, 0);
10 CHK_FAIL_END
11
12 puts((const char*)buffer);
13 return ret;
14}