[PATCH] other/2551: Successful g++ testsuite executables not deleted on cygwin

Billinghurst, David (CRTS) David.Billinghurst@riotinto.com
Sat Apr 14 07:17:00 GMT 2001


This patch fixes PR other/2551: Successful g++ testsuite executables not
deleted on cygwin 

The problem is that g++ testsuite executables generated by old-dejagnu.exp
are never deleted, so several hundred megabyts of unwanted files remain
after each tetssuite run.

Root cause is that the executable names do not have a suffix, so cygwin adds
.exe.  This patch adds suffix of .x

2001-04-15  David Billinghurst <David.Billinghurst@riotinto.com>

	* lib/old-dejagnu.exp:  add suffix .x to executable filenames

+++++++++++++++++++++++++++++++++++++++++
(Mr) David Billinghurst
Comalco Research Centre
PO Box 316, Thomastown, Vic, Australia, 3074
Phone:	+61 3 9469 0642
FAX:	+61 3 9462 2700
Email:	David.Billinghurst@riotinto.com


Index: old-dejagnu.exp
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/lib/old-dejagnu.exp,v
retrieving revision 1.22
diff -u -r1.22 old-dejagnu.exp
--- old-dejagnu.exp	2001/02/08 02:29:38	1.22
+++ old-dejagnu.exp	2001/04/14 14:07:08
@@ -233,7 +233,7 @@
     lappend cflags "compiler=$compiler"
 
     regsub -all "\[./\]" "$name" "-" output;
-    set output "$tmpdir/$output";
+    set output "$tmpdir/$output.x";
     set compile_type "executable"
 
     set tmp [lindex [grep $prog "Build don.t link:"] 0]





More information about the Gcc-patches mailing list