apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject cvs commit: apr/test testtime.c
Date Thu, 19 Dec 2002 19:55:11 GMT
rbb         2002/12/19 11:55:11

  Modified:    test     testtime.c
  Log:
  Make sure that when we print the string in test_localstr we get the
  time in the PST timezone.  This way, we can be sure that the test will
  succeed against the hard-coded string, which is in PST.
  
  Revision  Changes    Path
  1.44      +4 -0      apr/test/testtime.c
  
  Index: testtime.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testtime.c,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- testtime.c	26 Nov 2002 16:10:59 -0000	1.43
  +++ testtime.c	19 Dec 2002 19:55:11 -0000	1.44
  @@ -129,6 +129,10 @@
       if (rv == APR_ENOTIMPL) {
           CuNotImpl(tc, "apr_time_exp_lt");
       }
  +    /* Force us into PST timezone.  This is the only way the test will
  +     * succeed.
  +     */
  +    xt.tm_gmtoff = -25200;
       CuAssertTrue(tc, rv == APR_SUCCESS);
       CuAssertStrEquals(tc, "2002-08-14 12:05:36.186711 -25200 [257 Sat] DST",
                         print_time(p, &xt));
  
  
  

Mime
View raw message