summaryrefslogtreecommitdiff
path: root/test/NsCookieParserTest.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/NsCookieParserTest.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/NsCookieParserTest.cc')
-rw-r--r--test/NsCookieParserTest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/NsCookieParserTest.cc b/test/NsCookieParserTest.cc
index 1e431d2b..71b4bd67 100644
--- a/test/NsCookieParserTest.cc
+++ b/test/NsCookieParserTest.cc
@@ -33,7 +33,7 @@ void NsCookieParserTest::testParse()
{
NsCookieParser parser;
time_t now = 0;
- std::vector<Cookie> cookies = parser.parse("nscookietest.txt", now);
+ std::vector<Cookie> cookies = parser.parse(A2_TEST_DIR"/nscookietest.txt", now);
CPPUNIT_ASSERT_EQUAL((size_t)5, cookies.size());
Cookie c = cookies[0];