diff options
Diffstat (limited to 'tests/test_realpath_null.c')
| -rw-r--r-- | tests/test_realpath_null.c | 11 |
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 | |||
| 6 | int main(int argc, char** argv) { | ||
| 7 | char* rpath = realpath("/root/../", NULL); | ||
| 8 | printf("%s\n", rpath); | ||
| 9 | free(rpath); | ||
| 10 | return 0; | ||
| 11 | } | ||
