* gdb.base/exe-lock.exp (binfile): Add $EXEEXT suffix to fix
authorPierre Muller <muller@sourceware.org>
Thu, 25 Jun 2009 22:40:23 +0000 (22:40 +0000)
committerPierre Muller <muller@sourceware.org>
Thu, 25 Jun 2009 22:40:23 +0000 (22:40 +0000)
windows problem for 'file delete $binfile'.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/exe-lock.exp

index 8732519a98a64a650dc3813f7e83dbf4724c9cc0..1c285b277f7d41616f17103a87af44fb1e86c7c2 100644 (file)
@@ -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.
index 59c2adfdb1c8a25df7cc0df57f584d14f94bdf33..13e757da7cdc42109436ba3daa3d93646bf13bee 100644 (file)
@@ -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