diff options
author | Bernhard M. Wiedemann <bwiedemann@suse.de> | 2021-07-29 07:29:01 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-07-30 12:39:34 +0200 |
commit | 8d0c1137c1a80ae80cd98829efdb407696a56b9f (patch) | |
tree | 65a1590ebce9ba1a0cf2e33501d977783cae69e0 /tests | |
parent | 3df8d08d00a82f0bfc076ca1000abb209e0b9770 (diff) | |
download | curl-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')
-rw-r--r-- | tests/data/test1915 | 8 | ||||
-rw-r--r-- | tests/data/test493 | 2 | ||||
-rw-r--r-- | tests/libtest/lib1915.c | 3 |
3 files changed, 7 insertions, 6 deletions
diff --git a/tests/data/test1915 b/tests/data/test1915 index c47840adf..047a16e2e 100644 --- a/tests/data/test1915 +++ b/tests/data/test1915 @@ -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> diff --git a/tests/data/test493 b/tests/data/test493 index 142b0c1c5..db053d105 100644 --- a/tests/data/test493 +++ b/tests/data/test493 @@ -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> 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 |