summaryrefslogtreecommitdiff
path: root/tests/test_readlinkat_dynamic.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/test_readlinkat_dynamic.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/test_readlinkat_dynamic.c b/tests/test_readlinkat_dynamic.c
new file mode 100644
index 0000000..6976b74
--- /dev/null
+++ b/tests/test_readlinkat_dynamic.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[8] = {0};
8
9 readlinkat(AT_FDCWD, "", buffer, 6);
10
11 CHK_FAIL_START
12 readlinkat(AT_FDCWD, "", buffer, argc);
13 CHK_FAIL_END
14
15 puts(buffer);
16 return ret;
17}