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/NetrcTest.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/NetrcTest.cc')
| -rw-r--r-- | test/NetrcTest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/NetrcTest.cc b/test/NetrcTest.cc index 6c4b04c2..361a8da3 100644 --- a/test/NetrcTest.cc +++ b/test/NetrcTest.cc @@ -70,7 +70,7 @@ void NetrcTest::testFindAuthenticator() void NetrcTest::testParse() { Netrc netrc; - netrc.parse("sample.netrc"); + netrc.parse(A2_TEST_DIR"/sample.netrc"); std::vector<SharedHandle<Authenticator> >::const_iterator itr = netrc.getAuthenticators().begin(); @@ -109,7 +109,7 @@ void NetrcTest::testParse_fileNotFound() void NetrcTest::testParse_emptyfile() { Netrc netrc; - netrc.parse("emptyfile"); + netrc.parse(A2_TEST_DIR"/emptyfile"); CPPUNIT_ASSERT_EQUAL((size_t)0, netrc.getAuthenticators().size()); } @@ -118,7 +118,7 @@ void NetrcTest::testParse_malformedNetrc() { Netrc netrc; try { - netrc.parse("malformed.netrc"); + netrc.parse(A2_TEST_DIR"/malformed.netrc"); CPPUNIT_FAIL("exception must be thrown."); } catch(Exception& e) { std::cerr << e.stackTrace() << std::endl; |
