aboutsummaryrefslogtreecommitdiff
path: root/test/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.c')
-rw-r--r--test/test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test.c b/test/test.c
index c1646d2..f9aa823 100644
--- a/test/test.c
+++ b/test/test.c
@@ -1254,6 +1254,10 @@ int main(int argc, char *argv[])
}
basepath = argv[1];
assert(strlen(basepath) < 512);
+ if (basepath[0] != '/') {
+ fprintf(stderr, "testdir must be an absolute path\n");
+ return 1;
+ }
sprintf(testfile, "%s/testfile", basepath);
sprintf(testfile2, "%s/testfile2", basepath);