summaryrefslogtreecommitdiff
path: root/tests/test_readlinkat_static.c
diff options
context:
space:
mode:
authorjvoisin2026-05-04 17:02:12 +0200
committerjvoisin2026-05-10 01:10:32 +0200
commite7c86620bb0c0f8b868d3e4c8dcdebeeffb99631 (patch)
treedee45e3d0ba90fe49e17df891b4752524ea868ac /tests/test_readlinkat_static.c
parente8e2d1214a49f3c268fb5f3a92e8144b23e35243 (diff)
Add a handful of testsHEAD3.0.2master
Diffstat (limited to 'tests/test_readlinkat_static.c')
-rw-r--r--tests/test_readlinkat_static.c17
1 files changed, 17 insertions, 0 deletions
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 @@
1#include "common.h"
2
3#include <fcntl.h>
4#include <unistd.h>
5
6int main(int argc, char** argv) {
7 char buffer[12] = {0};
8
9 readlinkat(AT_FDCWD, "", buffer, 10);
10
11 CHK_FAIL_START
12 readlinkat(AT_FDCWD, "", buffer, 14);
13 CHK_FAIL_END
14
15 puts(buffer);
16 return ret;
17}