From dad7183404977f02512898b030242a7c0a40051c Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 22 Jun 2023 18:42:17 +0200 Subject: Add a test for ppoll --- tests/Makefile | 1 + tests/test_ppoll.c | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/test_ppoll.c (limited to 'tests') diff --git a/tests/Makefile b/tests/Makefile index fa0bcdd..0e415a5 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -32,6 +32,7 @@ TARGETS=test_memcpy_static_write \ test_stpncpy_static_write \ test_getcwd \ test_poll \ + test_ppoll \ .SILENT: diff --git a/tests/test_ppoll.c b/tests/test_ppoll.c new file mode 100644 index 0000000..82b77ab --- /dev/null +++ b/tests/test_ppoll.c @@ -0,0 +1,15 @@ +#include "common.h" + +#define _GNU_SOURCE +#include + +int main(int argc, char** argv) { + struct pollfd buffer[12] = {0}; + + CHK_FAIL_START + ppoll(buffer, 14, NULL, NULL); + CHK_FAIL_END + + puts(buffer); + return ret; +} -- cgit v1.3