Commit cdc6e633 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add runtime check that parsing of timestamps actually work.



git-svn-id: http://www.varnish-cache.org/svn/trunk@3137 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent d973e8b5
......@@ -446,6 +446,9 @@ main(int argc, char * const *argv)
*/
AZ(setenv("TZ", "UTC", 1));
tzset();
assert(TIM_parse("Sun, 06 Nov 1994 08:49:37 GMT") == 784111777);
assert(TIM_parse("Sunday, 06-Nov-94 08:49:37 GMT") == 784111777);
assert(TIM_parse("Sun Nov 6 08:49:37 1994") == 784111777);
memset(cli, 0, sizeof cli);
cli[0].sb = vsb_newauto();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment