summaryrefslogtreecommitdiff
path: root/test/urldbtest.c
diff options
context:
space:
mode:
authorSven Weidauer <sven@5sw.de>2017-08-12 12:58:38 +0200
committerSven Weidauer <sven@5sw.de>2017-08-12 12:58:38 +0200
commitd0549e7a5b14959097a1e8696dce1b1f40c6ba54 (patch)
tree9cb65c8a82a3a08f1c360a07287372febbad2878 /test/urldbtest.c
parentb9b91d4117e500d6da6b68d505d99c34e92c1fd1 (diff)
parent8c29c675c4301c90f5038a27aa31fa640f47e5aa (diff)
downloadnetsurf-d0549e7a5b14959097a1e8696dce1b1f40c6ba54.tar.gz
netsurf-d0549e7a5b14959097a1e8696dce1b1f40c6ba54.tar.bz2
Merge remote-tracking branch 'origin/master' into svenw/cocoa
Diffstat (limited to 'test/urldbtest.c')
-rw-r--r--test/urldbtest.c7
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 */