apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/test testfile.c
Date Thu, 02 Aug 2001 15:37:34 GMT
trawick     01/08/02 08:37:34

  Modified:    test     testfile.c
  Log:
  don't hang forever on systems which don't report readability on
  a regular file; this'll keep my regression script from hanging on
  FreeBSD :)
  
  Revision  Changes    Path
  1.38      +2 -2      apr/test/testfile.c
  
  Index: testfile.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testfile.c,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- testfile.c	2001/08/01 21:06:26	1.37
  +++ testfile.c	2001/08/02 15:37:34	1.38
  @@ -155,9 +155,9 @@
       apr_poll_socket_add(sdset, testsock, APR_POLLIN);
       num = 1;
       STD_TEST_NEQ("        Checking for incoming data",
  -                 apr_poll(sdset, &num, -1))
  +                 apr_poll(sdset, &num, 1 * APR_USEC_PER_SEC))
       if (num == 0) {
  -        MSG_AND_EXIT("I should not return until num == 1\n")
  +        printf("** This platform doesn't return readability on a regular file.**\n");
       }
       printf("    End of files as sockets test.\n");
   #endif
  
  
  

Mime
View raw message