You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2001/06/06 21:19:47 UTC

cvs commit: apr/test testtime.c

wrowe       01/06/06 12:19:47

  Modified:    test     testtime.c
  Log:
    This quiets the compiler, and prints the time delta discrepancy.
  
  Revision  Changes    Path
  1.19      +3 -2      apr/test/testtime.c
  
  Index: testtime.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testtime.c,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- testtime.c	2001/04/12 16:53:11	1.18
  +++ testtime.c	2001/06/06 19:19:43	1.19
  @@ -72,7 +72,7 @@
       apr_pool_t *p;
       char *str, *str2;
       apr_size_t sz;
  -    apr_interval_time_t hr_off = -5 * 3600; /* 5 hours in seconds */
  +    apr_int32_t hr_off = -5 * 3600; /* 5 hours in seconds */
   
       fprintf(stdout, "Testing Time functions.\n");
   
  @@ -180,7 +180,8 @@
       hr_off *= APR_USEC_PER_SEC; /* microseconds */ 
       if (imp != now + hr_off){
           printf("Failed! :(\n");
  -        printf("Difference is %lld (should be %lld)\n", imp - now, hr_off);
  +        printf("Difference is %" APR_TIME_T_FMT " (should be %" 
  +               APR_TIME_T_FMT ")\n", imp - now, hr_off);
           exit(-1);
       }
       printf("OK\n");