summaryrefslogtreecommitdiff
path: root/tests/libtest
diff options
context:
space:
mode:
authorBernhard M. Wiedemann <bwiedemann@suse.de>2021-07-29 07:29:01 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-07-30 12:39:34 +0200
commit8d0c1137c1a80ae80cd98829efdb407696a56b9f (patch)
tree65a1590ebce9ba1a0cf2e33501d977783cae69e0 /tests/libtest
parent3df8d08d00a82f0bfc076ca1000abb209e0b9770 (diff)
downloadcurl-8d0c1137c1a80ae80cd98829efdb407696a56b9f.tar.gz
tests: make three tests pass until 2037
after 2038 something in test1915 fails on 32-bit OSes Closes #7512
Diffstat (limited to 'tests/libtest')
-rw-r--r--tests/libtest/lib1915.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/libtest/lib1915.c b/tests/libtest/lib1915.c
index 4e632d3ab..f4b38267e 100644
--- a/tests/libtest/lib1915.c
+++ b/tests/libtest/lib1915.c
@@ -49,7 +49,8 @@ static CURLSTScode hstsread(CURL *easy, struct curl_hstsentry *e,
if(host && (strlen(host) < e->namelen)) {
strcpy(e->name, host);
e->includeSubDomains = FALSE;
- strcpy(e->expire, "20300320 01:02:03"); /* curl turns 32 that day */
+ strcpy(e->expire, "20370320 01:02:03"); /* curl turns 39 that day
+ just before 31-bit time_t overflow */
fprintf(stderr, "add '%s'\n", host);
}
else