diff options
author | Graham Leggett <minfrin@apache.org> | 2016-03-25 01:28:13 +0000 |
---|---|---|
committer | Graham Leggett <minfrin@apache.org> | 2016-03-25 01:28:13 +0000 |
commit | d247f99cf00884cf542171fe51265850f8b31bc0 (patch) | |
tree | f02a54c505ae5246c4bccf12dfa0fc7a3dca75e0 /test | |
parent | e6c4c9a94ef15e2d48a06d060ddcae7527c944b8 (diff) | |
download | apr-d247f99cf00884cf542171fe51265850f8b31bc0.tar.gz |
Backport 1734816:
apr_file_io: Add apr_file_pipe_create_pools() allowing a pair of
pipes to be created, each in a different pool.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1736523 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r-- | test/testpipe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testpipe.c b/test/testpipe.c index 4bf5e68b8..a56a773f3 100644 --- a/test/testpipe.c +++ b/test/testpipe.c @@ -56,7 +56,7 @@ static void set_timeout(abts_case *tc, void *data) apr_status_t rv; apr_interval_time_t timeout; - rv = apr_file_pipe_create_ex(&readp, &writep, APR_WRITE_BLOCK, p); + rv = apr_file_pipe_create_pools(&readp, &writep, APR_WRITE_BLOCK, p, p); ABTS_INT_EQUAL(tc, APR_SUCCESS, rv); ABTS_PTR_NOTNULL(tc, readp); ABTS_PTR_NOTNULL(tc, writep); @@ -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_ex(&readp, &writep, APR_WRITE_BLOCK, p); + rv = apr_file_pipe_create_pools(&readp, &writep, APR_WRITE_BLOCK, p, p); ABTS_INT_EQUAL(tc, APR_SUCCESS, rv); ABTS_PTR_NOTNULL(tc, readp); ABTS_PTR_NOTNULL(tc, writep); |