aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2009-06-25 22:40:23 +0000
committerPierre Muller <muller@sourceware.org>2009-06-25 22:40:23 +0000
commit3a72a60269b0aa890db3c6cee6ee68726660fabf (patch)
treebe5269817a92c72c69590100d3efd664f4bbb9b1 /gdb
parentd993e290c9829e84cb4f342d043db2c1147bb88a (diff)
downloadfsf-binutils-gdb-3a72a60269b0aa890db3c6cee6ee68726660fabf.zip
fsf-binutils-gdb-3a72a60269b0aa890db3c6cee6ee68726660fabf.tar.gz
fsf-binutils-gdb-3a72a60269b0aa890db3c6cee6ee68726660fabf.tar.bz2
* gdb.base/exe-lock.exp (binfile): Add $EXEEXT suffix to fix
windows problem for 'file delete $binfile'.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.base/exe-lock.exp5
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 8732519..1c285b2 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+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'.
+
2009-06-23 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/namespace-using.exp: New test.
diff --git a/gdb/testsuite/gdb.base/exe-lock.exp b/gdb/testsuite/gdb.base/exe-lock.exp
index 59c2adf..13e757d 100644
--- a/gdb/testsuite/gdb.base/exe-lock.exp
+++ b/gdb/testsuite/gdb.base/exe-lock.exp
@@ -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