This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, testsuite] Add missing cleanup in run-gcov
- From: Tom de Vries <Tom_deVries at mentor dot com>
- To: Mike Stump <mikestump at comcast dot net>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 26 Feb 2015 16:09:05 +0100
- Subject: [PATCH, testsuite] Add missing cleanup in run-gcov
- Authentication-results: sourceware.org; auth=none
Hi,
This patch adds cleaning up of uninteresting leftover coverage files in case of
xfail, f.i. for gcc.misc-tests/gcov-13.c.
OK for stage4 trunk?
Thanks,
- Tom
2015-02-26 Tom de Vries <tom@codesourcery.com>
* lib/gcov.exp: Cleanup in case of xfail.
---
gcc/testsuite/lib/gcov.exp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gcc/testsuite/lib/gcov.exp b/gcc/testsuite/lib/gcov.exp
index 6273ffa..229a396 100644
--- a/gcc/testsuite/lib/gcov.exp
+++ b/gcc/testsuite/lib/gcov.exp
@@ -391,6 +391,9 @@ proc run-gcov { args } {
}
if { $tfailed > 0 } {
fail "$testname gcov: $lfailed failures in line counts, $bfailed in branch percentages, $cfailed in return percentages, $ifailed in intermediate format"
+ if { $xfailed } {
+ clean-gcov $testcase
+ }
} else {
pass "$testname gcov"
clean-gcov $testcase
--
1.9.1