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 <t...@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