Force the time zone to GMT in the cookie tests in case the user is

using one of the so-called 'right' time zones that take into account
leap seconds, which causes the tests to fail (as reported by
Daniel Black in bug report #1745964).
This commit is contained in:
Dan Fandrich
2007-07-10 22:27:16 +00:00
parent a8d6b40736
commit 19631f5d5f
7 changed files with 41 additions and 1 deletions

View File

@@ -6,6 +6,15 @@
Changelog Changelog
Dan F (10 July 2007)
- Fixed a curl memory leak reported by Song Ma with a modified version
of the patch he suggested. Added his test case as test289 to verify.
- Force the time zone to GMT in the cookie tests in case the user is
using one of the so-called 'right' time zones that take into account
leap seconds, which causes the tests to fail (as reported by
Daniel Black in bug report #1745964).
Version 7.16.4 (10 July 2007) Version 7.16.4 (10 July 2007)
Daniel S (10 July 2007) Daniel S (10 July 2007)

View File

@@ -15,7 +15,7 @@ This release includes the following changes:
This release includes the following bugfixes: This release includes the following bugfixes:
o o Test cases 31, 46, 61, 506, 517 now work in time zones that use leap seconds
This release includes the following known bugs: This release includes the following known bugs:
@@ -32,6 +32,7 @@ New curl mirrors:
This release would not have looked like this without help, code, reports and This release would not have looked like this without help, code, reports and
advice from friends like these: advice from friends like these:
Dan Fandrich, Song Ma, Daniel Black
Thanks! (and sorry if I forgot to mention someone) Thanks! (and sorry if I forgot to mention someone)

View File

@@ -39,6 +39,12 @@ http
<name> <name>
HTTP with weirdly formatted cookies and cookiejar storage HTTP with weirdly formatted cookies and cookiejar storage
</name> </name>
# Explicitly set the time zone to a known good one, in case the user is
# using one of the 'right' zones that take into account leap seconds
# which causes the cookie expiry times to be different.
<setenv>
TZ=GMT
</setenv>
<command> <command>
http://%HOSTIP:%HTTPPORT/we/want/31 -b none -c log/jar31.txt http://%HOSTIP:%HTTPPORT/we/want/31 -b none -c log/jar31.txt
</command> </command>

View File

@@ -34,6 +34,12 @@ http
<name> <name>
HTTP, get cookies and store in cookie jar HTTP, get cookies and store in cookie jar
</name> </name>
# Explicitly set the time zone to a known good one, in case the user is
# using one of the 'right' zones that take into account leap seconds
# which causes the cookie expiry times to be different from what we expect.
<setenv>
TZ=GMT
</setenv>
<command> <command>
%HOSTIP:%HTTPPORT/want/46 -c log/jar46 -b log/injar46 %HOSTIP:%HTTPPORT/want/46 -c log/jar46 -b log/injar46
</command> </command>

View File

@@ -47,6 +47,12 @@ http
<name> <name>
HTTP with shared cookie list (and dns cache) HTTP with shared cookie list (and dns cache)
</name> </name>
# Explicitly set the time zone to a known good one, in case the user is
# using one of the 'right' zones that take into account leap seconds
# which causes the cookie expiry times to be different.
<setenv>
TZ=GMT
</setenv>
<tool> <tool>
lib506 lib506
</tool> </tool>

View File

@@ -17,6 +17,12 @@ lib517
<name> <name>
curl_getdate() testing curl_getdate() testing
</name> </name>
# Explicitly set the time zone to a known good one, in case the user is
# using one of the 'right' zones that take into account leap seconds
# which causes the cookie expiry times to be different.
<setenv>
TZ=GMT
</setenv>
<command> <command>
nothing nothing
</command> </command>

View File

@@ -35,6 +35,12 @@ http
<name> <name>
HTTP with various cookies and custom Host: HTTP with various cookies and custom Host:
</name> </name>
# Explicitly set the time zone to a known good one, in case the user is
# using one of the 'right' zones that take into account leap seconds
# which causes the cookie expiry times to be different.
<setenv>
TZ=GMT
</setenv>
<command> <command>
http://%HOSTIP:%HTTPPORT/we/want/61 -c log/jar61.txt -H "Host: www.host.foo.com" http://%HOSTIP:%HTTPPORT/we/want/61 -c log/jar61.txt -H "Host: www.host.foo.com"
</command> </command>