| xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | <testcase> | 
|  | 2 | <info> | 
|  | 3 | <keywords> | 
|  | 4 | getdate | 
|  | 5 | unittest | 
|  | 6 | </keywords> | 
|  | 7 | </info> | 
|  | 8 | # | 
|  | 9 | # Server-side | 
|  | 10 | <reply> | 
|  | 11 | </reply> | 
|  | 12 |  | 
|  | 13 | # Client-side | 
|  | 14 | <client> | 
|  | 15 | <server> | 
|  | 16 | none | 
|  | 17 | </server> | 
|  | 18 | # tool is what to use instead of 'curl' | 
|  | 19 | <tool> | 
|  | 20 | lib%TESTNUMBER | 
|  | 21 | </tool> | 
|  | 22 |  | 
|  | 23 | <name> | 
|  | 24 | curl_getdate() testing | 
|  | 25 | </name> | 
|  | 26 | <command> | 
|  | 27 | nothing | 
|  | 28 | </command> | 
|  | 29 | </client> | 
|  | 30 |  | 
|  | 31 | # | 
|  | 32 | # Verify data after the test has been "shot" | 
|  | 33 | <verify> | 
|  | 34 | <stdout> | 
|  | 35 | </stdout> | 
|  | 36 |  | 
|  | 37 | # This test case previously tested an overflow case ("2094 Nov 6 => | 
|  | 38 | # 2147483647") for 32bit time_t, but since some systems have 64bit time_t and | 
|  | 39 | # handles this (returning 3939840000), and some 64bit-time_t systems don't | 
|  | 40 | # handle this and return -1 for this, it turned very tricky to write a fine | 
|  | 41 | # test case and thus it is now removed until we have a way to write test cases | 
|  | 42 | # for this kind of things. | 
|  | 43 |  | 
|  | 44 | </verify> | 
|  | 45 | </testcase> |