summaryrefslogtreecommitdiff
path: root/tests/test_ppoll_dynamic.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_ppoll_dynamic.c
parent759cb4697e9bba06a5aabad9899d0700f57051da (diff)
Add more dynamic tests
Diffstat (limited to 'tests/test_ppoll_dynamic.c')
-rw-r--r--tests/test_ppoll_dynamic.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test_ppoll_dynamic.c b/tests/test_ppoll_dynamic.c
new file mode 100644
index 0000000..7b049d1
--- /dev/null
+++ b/tests/test_ppoll_dynamic.c
@@ -0,0 +1,15 @@
1#include "common.h"
2
3#define _GNU_SOURCE
4#include <poll.h>
5
6int main(int argc, char** argv) {
7 struct pollfd buffer[8] = {0};
8
9 CHK_FAIL_START
10 ppoll(buffer, argc, NULL, NULL);
11 CHK_FAIL_END
12
13 puts((const char*)buffer);
14 return ret;
15}