You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by iv...@apache.org on 2024/08/20 10:35:29 UTC
svn commit: r1920057 - in /apr/apr/branches/1.7.x: ./ test/testproc.c
Author: ivan
Date: Tue Aug 20 10:35:29 2024
New Revision: 1920057
URL: http://svn.apache.org/viewvc?rev=1920057&view=rev
Log:
On '1.7.x' branch: Merge r1917251 from trunk:
* test/testproc.c
(test_create_proc): Close stdin after writing data.
Modified:
apr/apr/branches/1.7.x/ (props changed)
apr/apr/branches/1.7.x/test/testproc.c
Propchange: apr/apr/branches/1.7.x/
------------------------------------------------------------------------------
Merged /apr/apr/trunk:r1917251
Modified: apr/apr/branches/1.7.x/test/testproc.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.7.x/test/testproc.c?rev=1920057&r1=1920056&r2=1920057&view=diff
==============================================================================
--- apr/apr/branches/1.7.x/test/testproc.c (original)
+++ apr/apr/branches/1.7.x/test/testproc.c Tue Aug 20 10:35:29 2024
@@ -65,6 +65,9 @@ static void test_create_proc(abts_case *
ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
ABTS_SIZE_EQUAL(tc, strlen(TESTSTR), length);
+ rv = apr_file_close(testfile);
+ ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
+
testfile = newproc.out;
length = 256;
buf = apr_pcalloc(p, length);