public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, testsuite] Add missing cleanup in run-gcov
@ 2015-02-26 15:25 Tom de Vries
  2015-02-26 18:17 ` Mike Stump
  0 siblings, 1 reply; 2+ messages in thread
From: Tom de Vries @ 2015-02-26 15:25 UTC (permalink / raw)
  To: Mike Stump, GCC Patches

[-- Attachment #1: Type: text/plain, Size: 165 bytes --]

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

[-- Attachment #2: 0001-Add-missing-cleanup-in-run-gcov.patch --]
[-- Type: text/x-patch, Size: 689 bytes --]

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH, testsuite] Add missing cleanup in run-gcov
  2015-02-26 15:25 [PATCH, testsuite] Add missing cleanup in run-gcov Tom de Vries
@ 2015-02-26 18:17 ` Mike Stump
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Stump @ 2015-02-26 18:17 UTC (permalink / raw)
  To: Tom de Vries; +Cc: GCC Patches

On Feb 26, 2015, at 7:09 AM, Tom de Vries <Tom_deVries@mentor.com> wrote:
> 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?

Ok.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-26 18:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-26 15:25 [PATCH, testsuite] Add missing cleanup in run-gcov Tom de Vries
2015-02-26 18:17 ` Mike Stump

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).