diff options
author | Vincent Sanders <vince@kyllikki.org> | 2017-07-26 09:17:57 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2017-07-26 09:17:57 +0100 |
commit | 8721279687f4b99b1b815c131257dee02d86553b (patch) | |
tree | 7c53fc52b9289a31705922a604b58fb056922eff /test/urldbtest.c | |
parent | 1a57d0ab7af89b2896facbc71ef9f29584969470 (diff) | |
download | netsurf-8721279687f4b99b1b815c131257dee02d86553b.tar.gz netsurf-8721279687f4b99b1b815c131257dee02d86553b.tar.bz2 |
update cookie database tests to not use expired cookie data
Diffstat (limited to 'test/urldbtest.c')
-rw-r--r-- | test/urldbtest.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/urldbtest.c b/test/urldbtest.c index 31cba2e1f..75a7210b0 100644 --- a/test/urldbtest.c +++ b/test/urldbtest.c @@ -571,6 +571,9 @@ static TCase *urldb_add_get_case_create(void) * Session basic test case * * The databases are loaded and saved with no manipulation + * + * \warning This test will fail when 32bit time_t wraps in 2038 as the + * cookie database expiry field is limited to that size. */ START_TEST(urldb_session_test) { @@ -591,7 +594,7 @@ START_TEST(urldb_session_test) res = urldb_save(outnam); ck_assert_int_eq(res, NSERROR_OK); - /* check for the correct answer */ + /* check the url database file written and the test file match */ ck_assert_int_eq(cmp(outnam, test_urldb_out_path), 0); /* remove test output */ @@ -601,7 +604,7 @@ START_TEST(urldb_session_test) outnam = testnam(NULL); urldb_save_cookies(outnam); - /* check for the correct answer */ + /* check the cookies file written and the test file match */ ck_assert_int_eq(cmp(outnam, test_cookies_out_path), 0); /* remove test output */ |