Skip to content

Commit

Permalink
On '1.7.x' branch: Merge r1917251 from trunk:
Browse files Browse the repository at this point in the history
  * test/testproc.c
    (test_create_proc): Close stdin after writing data.

git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1920057 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Ivan Zhakov committed Aug 20, 2024
1 parent 029a567 commit ff840b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/testproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ static void test_create_proc(abts_case *tc, void *data)
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);
Expand Down

0 comments on commit ff840b3

Please sign in to comment.