This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Use .exe suffix on LTO test executables


As I noted in
<http://gcc.gnu.org/ml/gcc-patches/2008-09/msg00905.html>, test
executables with no .exe or .<something> suffix are problematic for
testing on Windows targets.  This patch fixes the LTO tests to use
such suffixes, like other tests.

Tested with cross to i686-mingw32.  OK to commit?

2011-10-20  Joseph Myers  <joseph@codesourcery.com>

	* lib/lto.exp (lto-execute): Use .exe suffix for test executable
	names.

Index: gcc/testsuite/lib/lto.exp
===================================================================
--- gcc/testsuite/lib/lto.exp	(revision 180200)
+++ gcc/testsuite/lib/lto.exp	(working copy)
@@ -500,7 +500,7 @@
 	verbose "Testing $testcase, $option"
 
 	# There's a unique name for each executable we generate.
-	set execname "${execbase}-${count}1"
+	set execname "${execbase}-${count}1.exe"
 	incr count
 
 	file_on_host delete $execname

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]