summaryrefslogtreecommitdiff
path: root/test/MultiFileAllocationIteratorTest.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-12-02 22:38:36 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-12-02 22:52:35 +0900
commit3ee6784b7680ea941ec4ddd727b481d44d093953 (patch)
tree48b609b276283df0add56c6328b19a2f2f4f4f16 /test/MultiFileAllocationIteratorTest.cc
parent7ac1f17d56b9182ad3dfc262ec363e906943e64b (diff)
Made `make distcheck' pass.
We added 2 macros A2_TEST_DIR and A2_TEST_OUT_DIR to pass tests in `make distcheck`. A2_TEST_DIR refers to test directory. All output files by unit tests are now created under A2_TEST_OUT_DIR directory.
Diffstat (limited to 'test/MultiFileAllocationIteratorTest.cc')
-rw-r--r--test/MultiFileAllocationIteratorTest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/MultiFileAllocationIteratorTest.cc b/test/MultiFileAllocationIteratorTest.cc
index a391ab76..9d5aaf62 100644
--- a/test/MultiFileAllocationIteratorTest.cc
+++ b/test/MultiFileAllocationIteratorTest.cc
@@ -35,8 +35,8 @@ CPPUNIT_TEST_SUITE_REGISTRATION( MultiFileAllocationIteratorTest );
void MultiFileAllocationIteratorTest::testMakeDiskWriterEntries()
{
- std::string storeDir = "./aria2_MultiFileAllocationIteratorTest"
- "testMakeDiskWriterEntries_";
+ std::string storeDir = A2_TEST_OUT_DIR"/aria2_MultiFileAllocationIteratorTest"
+ "_testMakeDiskWriterEntries";
SharedHandle<FileEntry> fs[] = {
SharedHandle<FileEntry>(new FileEntry(storeDir+"/file1", 1536, 0)),
@@ -137,7 +137,7 @@ void MultiFileAllocationIteratorTest::testMakeDiskWriterEntries()
void MultiFileAllocationIteratorTest::testAllocate()
{
std::string storeDir =
- "./aria2_MultiFileAllocationIteratorTest_testAllocate";
+ A2_TEST_OUT_DIR"/aria2_MultiFileAllocationIteratorTest_testAllocate";
std::string fname1 = "file1";
std::string fname2 = "file2";