From 70f6380da66bb6f0fa1372267dc83e8a119026ee Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Thu, 26 Feb 2015 18:24:44 +0000 Subject: [PATCH] Add missing cleanup in run-gcov 2015-02-26 Tom de Vries * lib/gcov.exp: Cleanup in case of xfail. From-SVN: r221023 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/lib/gcov.exp | 3 +++ 2 files changed, 7 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ef6dad86e35..1211fab349b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-02-26 Tom de Vries + + * lib/gcov.exp: Cleanup in case of xfail. + 2015-02-26 Sebastian Pop * gcc.dg/tree-ssa/ssa-dom-thread-9.c: Fix warning due to missing type. diff --git a/gcc/testsuite/lib/gcov.exp b/gcc/testsuite/lib/gcov.exp index 6273ffa8746..229a3961553 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 -- 2.30.2