]> err.no Git - varnish/commitdiff
Add runtime check that parsing of timestamps actually work.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 27 Aug 2008 14:22:03 +0000 (14:22 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 27 Aug 2008 14:22:03 +0000 (14:22 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3137 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/varnishd.c

index 0782137168ec266a27829dd0a4ae7d835f581e6b..dd1f3bc1cf5fae603f82a7fa15e1db735e2ed790 100644 (file)
@@ -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();