From 64bf9df79faa619471c0d917413e3840cca8cf5e Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 27 Aug 2008 14:22:03 +0000 Subject: [PATCH] Add runtime check that parsing of timestamps actually work. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3137 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/varnishd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/varnish-cache/bin/varnishd/varnishd.c b/varnish-cache/bin/varnishd/varnishd.c index 07821371..dd1f3bc1 100644 --- a/varnish-cache/bin/varnishd/varnishd.c +++ b/varnish-cache/bin/varnishd/varnishd.c @@ -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(); -- 2.39.5