summaryrefslogtreecommitdiff
path: root/tests/test_realpath_null.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/test_realpath_null.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_realpath_null.c b/tests/test_realpath_null.c
new file mode 100644
index 0000000..b62cee8
--- /dev/null
+++ b/tests/test_realpath_null.c
@@ -0,0 +1,11 @@
1#include "common.h"
2
3#include <stdlib.h>
4#include <stdio.h>
5
6int main(int argc, char** argv) {
7 char* rpath = realpath("/root/../", NULL);
8 printf("%s\n", rpath);
9 free(rpath);
10 return 0;
11}