]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: make three tests pass until 2037
authorBernhard M. Wiedemann <bwiedemann@suse.de>
Thu, 29 Jul 2021 05:29:01 +0000 (07:29 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 30 Jul 2021 10:39:34 +0000 (12:39 +0200)
after 2038 something in test1915 fails on 32-bit OSes

Closes #7512

tests/data/test1915
tests/data/test493
tests/libtest/lib1915.c

index c47840adf6b4b66e9fa5dcce588426539332094c..047a16e2e531fb7ec52bbcee3898c066ca93875b 100644 (file)
@@ -41,10 +41,10 @@ http://%HOSTIP:%NOLISTENPORT/not-there/%TESTNUMBER
 7
 </errorcode>
 <stdout>
-[0/4] 1.example.com 20300320 01:02:03
-[1/4] 2.example.com 20300320 01:02:03
-[2/4] 3.example.com 20300320 01:02:03
-[3/4] 4.example.com 20300320 01:02:03
+[0/4] 1.example.com 20370320 01:02:03
+[1/4] 2.example.com 20370320 01:02:03
+[2/4] 3.example.com 20370320 01:02:03
+[3/4] 4.example.com 20370320 01:02:03
 </stdout>
 </verify>
 </testcase>
index 142b0c1c5d06ffda310c72e67d47ac58af75ece9..db053d1050bd72a62df08ef77af6225149f1e47f 100644 (file)
@@ -33,7 +33,7 @@ https
 </features>
 
 <file name="log/input%TESTNUMBER">
-.hsts.example "20311001 04:47:41"
+.hsts.example "99991001 04:47:41"
 </file>
 
 <name>
index 4e632d3abe05688d0a15b4742587c898b1e80293..f4b38267e56e973e886f6027ab1ef48f56f9e274 100644 (file)
@@ -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