Return-Path: Delivered-To: apmail-apr-cvs-archive@www.apache.org Received: (qmail 97650 invoked from network); 23 Nov 2003 23:23:54 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 23 Nov 2003 23:23:54 -0000 Received: (qmail 88121 invoked by uid 500); 23 Nov 2003 23:23:40 -0000 Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 88082 invoked by uid 500); 23 Nov 2003 23:23:40 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 88069 invoked from network); 23 Nov 2003 23:23:40 -0000 Date: 23 Nov 2003 23:23:53 -0000 Message-ID: <20031123232353.97638.qmail@minotaur.apache.org> From: jorton@apache.org To: apr-cvs@apache.org Subject: cvs commit: apr/test testpipe.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N jorton 2003/11/23 15:23:53 Modified: test testpipe.c Log: * testpipe.c (test_pipe_writefull): Wait for the child and ensure it terminates normally. Revision Changes Path 1.25 +6 -0 apr/test/testpipe.c Index: testpipe.c =================================================================== RCS file: /home/cvs/apr/test/testpipe.c,v retrieving revision 1.24 retrieving revision 1.25 diff -u -u -r1.24 -r1.25 --- testpipe.c 5 Jun 2003 02:14:08 -0000 1.24 +++ testpipe.c 23 Nov 2003 23:23:53 -0000 1.25 @@ -183,6 +183,7 @@ apr_procattr_t *procattr; const char *args[2]; apr_status_t rv; + apr_exit_why_e why; rv = apr_procattr_create(&procattr, p); CuAssertIntEquals(tc, APR_SUCCESS, rv); @@ -221,6 +222,11 @@ CuAssertIntEquals(tc, APR_SUCCESS, rv); bytes_processed = (int)apr_strtoi64(responsebuf, NULL, 10); CuAssertIntEquals(tc, iterations * bytes_per_iteration, bytes_processed); + + CuAssert(tc, "wait for child process", + apr_proc_wait(&proc, NULL, &why, APR_WAIT) == APR_CHILD_DONE); + + CuAssert(tc, "child terminated normally", why == APR_PROC_EXIT); } CuSuite *testpipe(void)