📄 test517
字号:
<testcase>## Server-side<reply></reply># Client-side<client><server>none</server># tool is what to use instead of 'curl'<tool>lib517</tool> <name>curl_getdate() testing </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>nothing</command></client>## Verify data after the test has been "shot"<verify><stdout mode="text">0: Sun, 06 Nov 1994 08:49:37 GMT => 7841117771: Sunday, 06-Nov-94 08:49:37 GMT => 7841117772: Sun Nov 6 08:49:37 1994 => 7841117773: 06 Nov 1994 08:49:37 GMT => 7841117774: 06-Nov-94 08:49:37 GMT => 7841117775: Nov 6 08:49:37 1994 => 7841117776: 06 Nov 1994 08:49:37 => 7841117777: 06-Nov-94 08:49:37 => 7841117778: 1994 Nov 6 08:49:37 => 7841117779: GMT 08:49:37 06-Nov-94 Sunday => 78411177710: 94 6 Nov 08:49:37 => 78411177711: 1994 Nov 6 => 78408000012: 06-Nov-94 => 78408000013: Sun Nov 6 94 => 78408000014: 1994.Nov.6 => 78408000015: Sun/Nov/6/94/GMT => 78408000016: Sun, 06 Nov 1994 08:49:37 CET => 78410817717: 06 Nov 1994 08:49:37 EST => 78412977718: Sun, 12 Sep 2004 15:05:58 -0700 => 109502675819: Sat, 11 Sep 2004 21:32:11 +0200 => 109493113120: 20040912 15:05:58 -0700 => 109502675821: 20040911 +0200 => 1094853600</stdout># This test case previously testes an overflow case ("2094 Nov 6 =># 2147483647") for 32bit time_t, but since some systems have 64bit time_t and# handles this (returning 3939840000), and some 64bit-time_t systems don't# handle this and returns -1 for this, it turned very tricky to write a fine# test case and thus it is now removed until we have a way to write test cases# for this kind of things.</verify></testcase>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -