Don't hardcode test file name.
authorNikolaus Rath <Nikolaus@rath.org>
Mon, 7 Nov 2016 05:00:57 +0000 (21:00 -0800)
committerNikolaus Rath <Nikolaus@rath.org>
Mon, 7 Nov 2016 05:01:38 +0000 (21:01 -0800)
test/test_write_cache.c

index 137cb8d9c726b11a5bc7aacdc62b792effb595b7..fa8032735c11a703064b2174d348db17cc6a806e 100644 (file)
@@ -160,7 +160,7 @@ static void test_fs(char *mountpoint) {
     assert(read(fd, buf, dsize) == dsize);
     close(fd);
 
-    assert(snprintf(fname, PATH_MAX, "%s/write_me",
+    assert(snprintf(fname, PATH_MAX, "%s/" FILE_NAME,
                      mountpoint) > 0);
     fd = open(fname, O_WRONLY);
     if (fd == -1) {