apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: apr/test testfile.c testshmproducer.c
Date Fri, 05 Jul 2002 00:26:37 GMT
brianp      2002/07/04 17:26:37

  Modified:    test     testfile.c testshmproducer.c
  Log:
  use new time conversion macros in place of APR_USEC_PER_SEC
  
  Revision  Changes    Path
  1.49      +1 -1      apr/test/testfile.c
  
  Index: testfile.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testfile.c,v
  retrieving revision 1.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- testfile.c	22 Apr 2002 10:24:41 -0000	1.48
  +++ testfile.c	5 Jul 2002 00:26:36 -0000	1.49
  @@ -157,7 +157,7 @@
       apr_poll_socket_add(sdset, testsock, APR_POLLIN);
       num = 1;
       STD_TEST_NEQ("        Checking for incoming data",
  -                 apr_poll(sdset, &num, 1 * APR_USEC_PER_SEC))
  +                 apr_poll(sdset, &num, apr_time_from_sec(1)));
       if (num == 0) {
           printf("** This platform doesn't return readability on a regular file.**\n");
       }
  
  
  
  1.5       +1 -1      apr/test/testshmproducer.c
  
  Index: testshmproducer.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testshmproducer.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- testshmproducer.c	13 Mar 2002 20:39:27 -0000	1.4
  +++ testshmproducer.c	5 Jul 2002 00:26:37 -0000	1.5
  @@ -118,7 +118,7 @@
       /* produce messages on all of the boxes, in descending order */
       for (i = N_BOXES - 1; i > 0; i--) {
           msgput(i, "Sending a message\n");
  -        apr_sleep(1*APR_USEC_PER_SEC);
  +        apr_sleep(apr_time_from_sec(1));
       }
   
       printf("Producer detaching from name-based shared memory....");
  
  
  

Mime
View raw message