summaryrefslogtreecommitdiff
path: root/test/UTMetadataPostDownloadHandlerTest.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/UTMetadataPostDownloadHandlerTest.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/UTMetadataPostDownloadHandlerTest.cc')
-rw-r--r--test/UTMetadataPostDownloadHandlerTest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/UTMetadataPostDownloadHandlerTest.cc b/test/UTMetadataPostDownloadHandlerTest.cc
index b1f4641a..006b3c11 100644
--- a/test/UTMetadataPostDownloadHandlerTest.cc
+++ b/test/UTMetadataPostDownloadHandlerTest.cc
@@ -34,8 +34,8 @@ public:
{
option_.reset(new Option());
option_->put("HELLO", "WORLD");
- option_->put(PREF_DIR, ".");
- dctx_.reset(new DownloadContext(0, 0, "something"));
+ option_->put(PREF_DIR, A2_TEST_OUT_DIR);
+ dctx_.reset(new DownloadContext(0, 0, A2_TEST_OUT_DIR"/something"));
requestGroup_.reset(new RequestGroup(option_));
requestGroup_->setDownloadContext(dctx_);
}
@@ -66,7 +66,7 @@ void UTMetadataPostDownloadHandlerTest::testCanHandle()
void UTMetadataPostDownloadHandlerTest::testGetNextRequestGroups()
{
- File trfile("cd41c7fdddfd034a15a04d7ff881216e01c4ceaf.torrent");
+ File trfile(A2_TEST_OUT_DIR"/cd41c7fdddfd034a15a04d7ff881216e01c4ceaf.torrent");
if(trfile.exists()) {
trfile.remove();
}