diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2007-10-14 06:22:27 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2007-10-14 06:22:27 +0000 |
commit | 96698d2f465bc8ea4d3494aeddbe3c4b7c06f3ea (patch) | |
tree | 0eb3eda445c1498512bb3fd34019513a2b7412b6 /test | |
parent | 622c6aadc1b38a109646c793b4420a52640f5717 (diff) | |
download | libapr-96698d2f465bc8ea4d3494aeddbe3c4b7c06f3ea.tar.gz |
Illustrate the use of the new API which succeeds on all platforms
(we will hope).
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@584494 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r-- | test/testpipe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/testpipe.c b/test/testpipe.c index bb0cafef2..819c8aa27 100644 --- a/test/testpipe.c +++ b/test/testpipe.c @@ -56,12 +56,12 @@ static void set_timeout(abts_case *tc, void *data) apr_status_t rv; apr_interval_time_t timeout; - rv = apr_file_pipe_create(&readp, &writep, p); + rv = apr_file_pipe_create_ex(&readp, &writep, APR_WRITE_BLOCK, p); ABTS_INT_EQUAL(tc, APR_SUCCESS, rv); ABTS_PTR_NOTNULL(tc, readp); ABTS_PTR_NOTNULL(tc, writep); - rv = apr_file_pipe_timeout_get(readp, &timeout); + rv = apr_file_pipe_timeout_get(writep, &timeout); ABTS_INT_EQUAL(tc, APR_SUCCESS, rv); ABTS_ASSERT(tc, "Timeout mismatch, expected -1", timeout == -1); @@ -83,7 +83,7 @@ static void read_write(abts_case *tc, void *data) nbytes = strlen("this is a test"); buf = (char *)apr_palloc(p, nbytes + 1); - rv = apr_file_pipe_create(&readp, &writep, p); + rv = apr_file_pipe_create_ex(&readp, &writep, APR_WRITE_BLOCK, p); ABTS_INT_EQUAL(tc, APR_SUCCESS, rv); ABTS_PTR_NOTNULL(tc, readp); ABTS_PTR_NOTNULL(tc, writep); |