summaryrefslogtreecommitdiff
path: root/test/FallocFileAllocationIteratorTest.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-08-25 00:26:36 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-08-25 00:26:36 +0900
commita743bef220f0b0564358f8efe7afedd9df143767 (patch)
tree311e57792e492cf774aa6afad9eef773c82fd82a /test/FallocFileAllocationIteratorTest.cc
parent72369c20c6e90fe327fdc6a64689626c20e1477b (diff)
Fixed output file path of tests.
Diffstat (limited to 'test/FallocFileAllocationIteratorTest.cc')
-rw-r--r--test/FallocFileAllocationIteratorTest.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/FallocFileAllocationIteratorTest.cc b/test/FallocFileAllocationIteratorTest.cc
index 07cab4bc..a6b2b8f4 100644
--- a/test/FallocFileAllocationIteratorTest.cc
+++ b/test/FallocFileAllocationIteratorTest.cc
@@ -29,9 +29,7 @@ void FallocFileAllocationIteratorTest::testAllocate()
// When fallocate is used, test fails if file system does not
// support it. So skip it.
#ifndef HAVE_FALLOCATE
- std::string dir = "./";
- std::string fname = "aria2_FallocFileAllocationIteratorTest_testAllocate";
- std::string fn = dir+"/"+fname;
+ std::string fn = A2_TEST_OUT_DIR"/aria2_FallocFileAllocationIteratorTest_testAllocate";
std::ofstream of(fn.c_str(), std::ios::binary);
of << "0123456789";
of.close();