diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2016-11-06 21:00:57 -0800 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2016-11-06 21:01:38 -0800 |
commit | 1fe4258932e3c9e37ae16c163a265b1331886efa (patch) | |
tree | b2d8951707bae755f82610b64d46ac617a5e2b04 /test | |
parent | a50b2ab170ed12c950a621f8f29f1619850286fb (diff) |
Don't hardcode test file name.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_write_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_write_cache.c b/test/test_write_cache.c index 137cb8d..fa80327 100644 --- a/test/test_write_cache.c +++ b/test/test_write_cache.c @@ -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) { |