mirror of
https://github.com/aria2/aria2.git
synced 2025-04-07 06:27:37 +03:00
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.
This commit is contained in:
parent
7ac1f17d56
commit
3ee6784b76
40 changed files with 210 additions and 172 deletions
|
@ -83,7 +83,8 @@ void DownloadHandlerFactoryTest::testGetMetalinkPreDownloadHandler_contentType()
|
|||
|
||||
void DownloadHandlerFactoryTest::testGetBtPreDownloadHandler_extension()
|
||||
{
|
||||
SharedHandle<DownloadContext> dctx(new DownloadContext(0, 0, "test.torrent"));
|
||||
SharedHandle<DownloadContext> dctx
|
||||
(new DownloadContext(0, 0, A2_TEST_DIR"/test.torrent"));
|
||||
RequestGroup rg(option_);
|
||||
rg.setDownloadContext(dctx);
|
||||
|
||||
|
@ -91,7 +92,7 @@ void DownloadHandlerFactoryTest::testGetBtPreDownloadHandler_extension()
|
|||
|
||||
CPPUNIT_ASSERT(handler->canHandle(&rg));
|
||||
|
||||
dctx->getFirstFileEntry()->setPath("test.torrent2");
|
||||
dctx->getFirstFileEntry()->setPath(A2_TEST_DIR"/test.torrent2");
|
||||
CPPUNIT_ASSERT(!handler->canHandle(&rg));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue