fortify-headers

standalone fortify-source implementation
git clone git://git.2f30.org/fortify-headers
Log | Files | Refs | README | LICENSE

commit dad7183404977f02512898b030242a7c0a40051c
parent 28d61f4202a73fa39d07774c66e1404858adfee9
Author: jvoisin <julien.voisin@dustri.org>
Date:   Thu, 22 Jun 2023 18:42:17 +0200

Add a test for ppoll

Diffstat:
Mtests/Makefile | 1+
Atests/test_ppoll.c | 15+++++++++++++++
2 files changed, 16 insertions(+), 0 deletions(-)

diff --git 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 @@ -0,0 +1,15 @@ +#include "common.h" + +#define _GNU_SOURCE +#include <poll.h> + +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; +}