apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject cvs commit: apr/test testtime.c
Date Thu, 16 Jan 2003 11:39:43 GMT
jorton      2003/01/16 03:39:42

  Modified:    test     testtime.c
  Log:
  Fix the time vs apr_time_now comparison to really allow 1 second
  of leeway.
  
  Revision  Changes    Path
  1.49      +1 -1      apr/test/testtime.c
  
  Index: testtime.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testtime.c,v
  retrieving revision 1.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- testtime.c	10 Jan 2003 23:18:42 -0000	1.48
  +++ testtime.c	16 Jan 2003 11:39:42 -0000	1.49
  @@ -103,7 +103,7 @@
        * 1 second.
        */
       CuAssert(tc, "apr_time and OS time do not agree", 
  -             (timediff > -1) && (timediff < 1));
  +             (timediff > -2) && (timediff < 2));
   }
   
   static void test_gmtstr(CuTest *tc)
  
  
  

Mime
View raw message