From e7c86620bb0c0f8b868d3e4c8dcdebeeffb99631 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 4 May 2026 17:02:12 +0200 Subject: Add a handful of tests --- tests/test_readlinkat_static.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/test_readlinkat_static.c (limited to 'tests/test_readlinkat_static.c') diff --git a/tests/test_readlinkat_static.c b/tests/test_readlinkat_static.c new file mode 100644 index 0000000..3331b1e --- /dev/null +++ b/tests/test_readlinkat_static.c @@ -0,0 +1,17 @@ +#include "common.h" + +#include +#include + +int main(int argc, char** argv) { + char buffer[12] = {0}; + + readlinkat(AT_FDCWD, "", buffer, 10); + + CHK_FAIL_START + readlinkat(AT_FDCWD, "", buffer, 14); + CHK_FAIL_END + + puts(buffer); + return ret; +} -- cgit v1.3