You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by tr...@apache.org on 2001/08/02 17:37:34 UTC
cvs commit: apr/test testfile.c
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