apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r584494 - /apr/apr/trunk/test/testpipe.c
Date Sun, 14 Oct 2007 06:22:28 GMT
Author: wrowe
Date: Sat Oct 13 23:22:27 2007
New Revision: 584494

URL: http://svn.apache.org/viewvc?rev=584494&view=rev
Log:
Illustrate the use of the new API which succeeds on all platforms
(we will hope).

Modified:
    apr/apr/trunk/test/testpipe.c

Modified: apr/apr/trunk/test/testpipe.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testpipe.c?rev=584494&r1=584493&r2=584494&view=diff
==============================================================================
--- apr/apr/trunk/test/testpipe.c (original)
+++ apr/apr/trunk/test/testpipe.c Sat Oct 13 23:22:27 2007
@@ -56,12 +56,12 @@
     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 @@
     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);



Mime
View raw message