summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-08-02 15:37:34 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-08-02 15:37:34 +0000
commit46201873c46899b4ee95648d9f47076dc129a5b7 (patch)
tree45bd598d348c8f29520f31df5b3be3c5cbdaeff0
parent11c4d17f5028c3c2b1287cdd28ecc1dbc86352f3 (diff)
downloadlibapr-46201873c46899b4ee95648d9f47076dc129a5b7.tar.gz
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 :) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62085 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--test/testfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testfile.c b/test/testfile.c
index 942805788..e8426a7f1 100644
--- a/test/testfile.c
+++ b/test/testfile.c
@@ -155,9 +155,9 @@ int main(void)
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