You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2007/10/12 03:49:48 UTC
svn commit: r584023 - /apr/apr/trunk/test/testdup.c
Author: wrowe
Date: Thu Oct 11 18:49:48 2007
New Revision: 584023
URL: http://svn.apache.org/viewvc?rev=584023&view=rev
Log:
When we are done with apr_file_t's shall we close them?
Modified:
apr/apr/trunk/test/testdup.c
Modified: apr/apr/trunk/test/testdup.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testdup.c?rev=584023&r1=584022&r2=584023&view=diff
==============================================================================
--- apr/apr/trunk/test/testdup.c (original)
+++ apr/apr/trunk/test/testdup.c Thu Oct 11 18:49:48 2007
@@ -128,6 +128,8 @@
rv = apr_file_dup2(errfile, saveerr, p);
ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
ABTS_PTR_NOTNULL(tc, errfile);
+
+ apr_file_close(saveerr);
}
static void test_dup2_readwrite(abts_case *tc, void *data)
@@ -178,6 +180,8 @@
rv = apr_file_dup2(errfile, saveerr, p);
ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
ABTS_PTR_NOTNULL(tc, errfile);
+
+ apr_file_close(saveerr);
}
abts_suite *testdup(abts_suite *suite)