This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[OBV] Fix testsuite gdb.base/exe-lock.exp windows specific failure
- From: "Pierre Muller" <muller at ics dot u-strasbg dot fr>
- To: <gdb-patches at sourceware dot org>
- Date: Fri, 26 Jun 2009 00:41:27 +0200
- Subject: [OBV] Fix testsuite gdb.base/exe-lock.exp windows specific failure
Checked in as obvious,
Pierre Muller
ChangeLog entry:
2009-06-26 Pierre Muller <muller@ics.u-strasbg.fr>
* gdb.base/exe-lock.exp (binfile): Add $EXEEXT suffix to fix
windows problem for 'file delete $binfile'.
Index: gdb.base/exe-lock.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/exe-lock.exp,v
retrieving revision 1.1
diff -u -p -r1.1 exe-lock.exp
--- gdb.base/exe-lock.exp 14 Apr 2009 16:49:56 -0000 1.1
+++ gdb.base/exe-lock.exp 25 Jun 2009 22:39:04 -0000
@@ -23,7 +23,10 @@ if $tracelevel {
set testfile "arrayidx"
set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+# $EXEEXT suffix is needed here, because otherwise, Windows targets
+# don't find the $binfile for 'file delete $binfile'.
+set binfile ${objdir}/${subdir}/${testfile}$EXEEXT
+
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable
{debug}] != "" } {
untested "Couldn't compile ${srcfile}"
return -1