apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: apr/test testtime.c
Date Sat, 30 Jun 2001 12:02:38 GMT
brane       01/06/30 05:02:38

  Modified:    test     testtime.c
  Log:
  Added another test for apr_explode_gmt/apr_implode_gmt combinations.
  
  Revision  Changes    Path
  1.24      +15 -0     apr/test/testtime.c
  
  Index: testtime.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testtime.c,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- testtime.c	2001/06/30 09:50:29	1.23
  +++ testtime.c	2001/06/30 12:02:38	1.24
  @@ -99,6 +99,21 @@
       }
       printf("OK\n");
   
  +    STD_TEST_NEQ("    apr_implode_gmt (GMT)",
  +                 apr_implode_gmt(&imp, &xt))
  +
  +    printf("%-60s", "    checking GMT explode == GMT implode");
  +    if (imp != now) {
  +        printf("mismatch\n"
  +                "\t\tapr_now()                %" APR_INT64_T_FMT "\n"
  +                "\t\tapr_implode() returned   %" APR_INT64_T_FMT "\n"
  +                "\t\terror delta was          %" APR_TIME_T_FMT "\n"
  +                "\t\tshould have been         0\n",
  +                now, imp, imp-now);
  +        exit(-1);
  +    }
  +    printf("OK\n");
  +
       STD_TEST_NEQ("    apr_implode_gmt (localtime)",
                    apr_implode_gmt(&imp, &xt2))
   
  
  
  

Mime
View raw message