From: Pierre Muller Date: Thu, 25 Jun 2009 22:40:23 +0000 (+0000) Subject: * gdb.base/exe-lock.exp (binfile): Add $EXEEXT suffix to fix X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3a72a60269b0aa890db3c6cee6ee68726660fabf;p=binutils-gdb.git * gdb.base/exe-lock.exp (binfile): Add $EXEEXT suffix to fix windows problem for 'file delete $binfile'. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 8732519a98a..1c285b277f7 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2009-06-26 Pierre Muller + + * gdb.base/exe-lock.exp (binfile): Add $EXEEXT suffix to fix + windows problem for 'file delete $binfile'. + 2009-06-23 Sami Wagiaalla * 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 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