From 33acec595b47ec97ae57a98ec396a26f6d8e309e Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 9 Jul 2023 16:11:24 +0200 Subject: Add tests for unistd.h --- tests/test_readlink.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/test_readlink.c (limited to 'tests/test_readlink.c') diff --git a/tests/test_readlink.c b/tests/test_readlink.c new file mode 100644 index 0000000..39b9d6a --- /dev/null +++ b/tests/test_readlink.c @@ -0,0 +1,16 @@ +#include "common.h" + +#include + +int main(int argc, char** argv) { + char buffer[12] = {0}; + + readlink("", buffer, 10); + + CHK_FAIL_START + readlink("", buffer, 14); + CHK_FAIL_END + + puts(buffer); + return ret; +} -- cgit v1.3