* gdb.base/exe-lock.exp (binfile): Add $EXEEXT suffix to fix

windows problem for 'file delete $binfile'.
This commit is contained in:
Pierre Muller 2009-06-25 22:40:23 +00:00
parent d993e290c9
commit 3a72a60269
2 changed files with 9 additions and 1 deletions

View 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.

View 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