aboutsummaryrefslogtreecommitdiff
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/testsuite/gdb.base/exe-lock.exp
parent * server.c (process_serial_event): Re-return unsupported, not (diff)
downloadbinutils-gdb-3a72a60269b0aa890db3c6cee6ee68726660fabf.tar.gz
binutils-gdb-3a72a60269b0aa890db3c6cee6ee68726660fabf.tar.bz2
binutils-gdb-3a72a60269b0aa890db3c6cee6ee68726660fabf.zip
* gdb.base/exe-lock.exp (binfile): Add $EXEEXT suffix to fix
windows problem for 'file delete $binfile'.
Diffstat (limited to 'gdb/testsuite/gdb.base/exe-lock.exp')
-rw-r--r--gdb/testsuite/gdb.base/exe-lock.exp5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/exe-lock.exp b/gdb/testsuite/gdb.base/exe-lock.exp
index 59c2adfdb1c..13e757da7cd 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