diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-12-02 22:38:36 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-12-02 22:52:35 +0900 |
| commit | 3ee6784b7680ea941ec4ddd727b481d44d093953 (patch) | |
| tree | 48b609b276283df0add56c6328b19a2f2f4f4f16 /test/ProtocolDetectorTest.cc | |
| parent | 7ac1f17d56b9182ad3dfc262ec363e906943e64b (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/ProtocolDetectorTest.cc')
| -rw-r--r-- | test/ProtocolDetectorTest.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ProtocolDetectorTest.cc b/test/ProtocolDetectorTest.cc index 731b1db3..72bd51d0 100644 --- a/test/ProtocolDetectorTest.cc +++ b/test/ProtocolDetectorTest.cc @@ -40,9 +40,9 @@ void ProtocolDetectorTest::testIsStreamProtocol() void ProtocolDetectorTest::testGuessTorrentFile() { ProtocolDetector detector; - CPPUNIT_ASSERT(detector.guessTorrentFile("test.torrent")); + CPPUNIT_ASSERT(detector.guessTorrentFile(A2_TEST_DIR"/test.torrent")); CPPUNIT_ASSERT(!detector.guessTorrentFile("http://localhost/test.torrent")); - CPPUNIT_ASSERT(!detector.guessTorrentFile("test.xml")); + CPPUNIT_ASSERT(!detector.guessTorrentFile(A2_TEST_DIR"/test.xml")); } void ProtocolDetectorTest::testGuessTorrentMagnet() @@ -63,9 +63,9 @@ void ProtocolDetectorTest::testGuessTorrentMagnet() void ProtocolDetectorTest::testGuessMetalinkFile() { ProtocolDetector detector; - CPPUNIT_ASSERT(detector.guessMetalinkFile("test.xml")); + CPPUNIT_ASSERT(detector.guessMetalinkFile(A2_TEST_DIR"/test.xml")); CPPUNIT_ASSERT(!detector.guessMetalinkFile("http://localhost/test.xml")); - CPPUNIT_ASSERT(!detector.guessMetalinkFile("test.torrent")); + CPPUNIT_ASSERT(!detector.guessMetalinkFile(A2_TEST_DIR"/test.torrent")); } } // namespace aria2 |
