aboutsummaryrefslogtreecommitdiff
path: root/tests/fs/test_emptyPath.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fs/test_emptyPath.c')
-rw-r--r--tests/fs/test_emptyPath.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/fs/test_emptyPath.c b/tests/fs/test_emptyPath.c
new file mode 100644
index 00000000..27d56ea1
--- /dev/null
+++ b/tests/fs/test_emptyPath.c
@@ -0,0 +1,14 @@
+#include <stdio.h>
+
+int main() {
+ FILE* f1 = fopen("s", "r");
+ if (f1 == NULL) {
+ printf("file 's' not found!\n");
+ }
+
+ FILE* f2 = fopen("", "r");
+ if (f2 == NULL) {
+ printf("file '' not found!\n");
+ }
+ return 0;
+}