From fe3e4269959ea7534722aa2664a3cac69d9109cf Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 31 Oct 2025 15:18:10 +0100 Subject: Add a testsuite Co-Authored-By: q66 --- tests/test_ppoll_static.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/test_ppoll_static.c (limited to 'tests/test_ppoll_static.c') diff --git a/tests/test_ppoll_static.c b/tests/test_ppoll_static.c new file mode 100644 index 0000000..c5e0155 --- /dev/null +++ b/tests/test_ppoll_static.c @@ -0,0 +1,17 @@ +#include "common.h" + +#define _GNU_SOURCE +#include + +int main(int argc, char** argv) { +#if !defined(__clang__) + struct pollfd buffer[12] = {0}; + + CHK_FAIL_START + ppoll(buffer, 14, NULL, NULL); + CHK_FAIL_END + + puts((const char*)buffer); +#endif + return ret; +} -- cgit v1.3