rbb 2002/12/15 11:12:10
Modified: test testall.c testproc.c
Log:
Make sure testproc cleans up after itself too.
Revision Changes Path
1.37 +1 -0 apr/test/testall.c
Index: testall.c
===================================================================
RCS file: /home/cvs/apr/test/testall.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- testall.c 12 Dec 2002 04:01:11 -0000 1.36
+++ testall.c 15 Dec 2002 19:12:10 -0000 1.37
@@ -148,6 +148,7 @@
CuSuiteListRunWithSummary(alltests);
i = CuSuiteListDetails(alltests, output);
printf("%s\n", output->buffer);
+
return i > 0 ? 1 : 0;
}
1.39 +5 -0 apr/test/testproc.c
Index: testproc.c
===================================================================
RCS file: /home/cvs/apr/test/testproc.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- testproc.c 26 Nov 2002 16:02:37 -0000 1.38
+++ testproc.c 15 Dec 2002 19:12:10 -0000 1.39
@@ -188,6 +188,11 @@
CuAssertIntEquals(tc, APR_SUCCESS, rv);
CuAssertStrEquals(tc, TESTSTR, buf);
+
+ apr_file_close(testfile);
+ apr_file_close(testout);
+ apr_file_close(testerr);
+
rv = apr_file_remove("data/stdin", p);;
CuAssertIntEquals(tc, APR_SUCCESS, rv);
rv = apr_file_remove("data/stdout", p);;