diff mbox

[testsuite] : Remove .exe.???t.* and .exe.ltrans0.???t.* files from testsuite dir

Message ID CAFULd4bgZwZ+9g3ba4uQ-hP__RZBC=pXahNtfKcRsvQghbLeqw@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak July 31, 2011, 7:57 a.m. UTC
Hello!

2011-07-31  Uros Bizjak  <ubizjak@gmail.com>

	* lib/gcc-dg.exp (cleanup-dump): Also remove .exe. and .exe.ltrans0.
	dump files.

Tested on x64-pc-linux-gnu. OK for mainline?

Uros.

Comments

Richard Biener July 31, 2011, 9:39 a.m. UTC | #1
On Sun, Jul 31, 2011 at 9:57 AM, Uros Bizjak <ubizjak@gmail.com> wrote:
> Hello!
>
> 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
>
>        * lib/gcc-dg.exp (cleanup-dump): Also remove .exe. and .exe.ltrans0.
>        dump files.
>
> Tested on x64-pc-linux-gnu. OK for mainline?

I think you need to remove all .exe.ltrans[0-9]*. files instead.

Richard.

> Uros.
>
diff mbox

Patch

Index: lib/gcc-dg.exp
===================================================================
--- lib/gcc-dg.exp	(revision 176960)
+++ lib/gcc-dg.exp	(working copy)
@@ -487,6 +487,8 @@ 
     # The name might include a list of options; extract the file name.
     set src [file tail [lindex $testcase 0]]
     remove-build-file "[file tail $src].$suffix"
+    remove-build-file "[file rootname [file tail $src]].exe.$suffix"
+    remove-build-file "[file rootname [file tail $src]].exe.ltrans0.$suffix"
     # -fcompare-debug dumps
     remove-build-file "[file tail $src].gk.$suffix"
 
@@ -494,6 +496,8 @@ 
     if [info exists additional_sources] {
 	foreach srcfile $additional_sources {
 	    remove-build-file "[file tail $srcfile].$suffix"
+	    remove-build-file "[file rootname [file tail $srcfile]].exe.$suffix"
+	    remove-build-file "[file rootname [file tail $srcfile]].exe.ltrans0.$suffix"
 	    # -fcompare-debug dumps
 	    remove-build-file "[file tail $srcfile].gk.$suffix"
 	}