test1415: adjusted to work for 32bit time_t
authorDaniel Stenberg <daniel@haxx.se>
Sat, 21 Sep 2013 18:43:39 +0000 (13:43 -0500)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 21 Sep 2013 18:46:42 +0000 (13:46 -0500)
The libcurl date parser returns INT_MAX for all dates > 2037 so this
test is now made to use 2037 instead of 2038 to work the same for both
32bit and 64bit time_t systems.

tests/data/test1415

index cc6bd70e71daacd87a62c00e43009c7eac6b9451..51eed3eedab27bdbd8f5f9398d1712c9b886ca2f 100644 (file)
@@ -18,12 +18,12 @@ Content-Length: 4
 Content-Type: text/html
 Funny-head: yesyes
 Set-Cookie: test1value=test1; domain=example.com; path=/;
-Set-Cookie: test2value=test2; expires=Friday, 01-Jan-2038 00:00:00 GMT; domain=example.com; path=/;
+Set-Cookie: test2value=test2; expires=Friday, 01-Jan-2037 00:00:00 GMT; domain=example.com; path=/;
 Set-Cookie: test3value=test3; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
-Set-Cookie: test4value=test4; expires=Friday, 01-Jan-2038 00:00:00 GMT; domain=example.com; path=/;
+Set-Cookie: test4value=test4; expires=Friday, 01-Jan-2037 00:00:00 GMT; domain=example.com; path=/;
 Set-Cookie: test5value=test5; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
 Set-Cookie: test6value=test6; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
-Set-Cookie: test7value=test7; expires=Friday, 01-Jan-2038 00:00:00 GMT; domain=example.com; path=/;
+Set-Cookie: test7value=test7; expires=Friday, 01-Jan-2037 00:00:00 GMT; domain=example.com; path=/;
 Set-Cookie: test8value=test8; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
 
 boo
@@ -64,9 +64,9 @@ Proxy-Connection: Keep-Alive
 # This file was generated by libcurl! Edit at your own risk.
 
 .example.com   TRUE    /       FALSE   0       test1value      test1
-.example.com   TRUE    /       FALSE   2145916800      test2value      test2
-.example.com   TRUE    /       FALSE   2145916800      test4value      test4
-.example.com   TRUE    /       FALSE   2145916800      test7value      test7
+.example.com   TRUE    /       FALSE   2114380800      test2value      test2
+.example.com   TRUE    /       FALSE   2114380800      test4value      test4
+.example.com   TRUE    /       FALSE   2114380800      test7value      test7
 </file>
 </verify>
 </testcase>