summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/reread.exp
diff options
context:
space:
mode:
authorNicholas Duffek <nsd@redhat.com>2000-11-17 16:37:48 +0000
committerNicholas Duffek <nsd@redhat.com>2000-11-17 16:37:48 +0000
commit930764990dffdc53fe322f7db4ac952fd5d0446f (patch)
tree05b2ea868dcdf63197005d536e640c6c7539b49a /gdb/testsuite/gdb.base/reread.exp
parent30e87cd37230c673d7c3d675b6b278485ca2f225 (diff)
downloadbinutils-gdb-930764990dffdc53fe322f7db4ac952fd5d0446f.tar.gz
* configure.in: Add AC_EXEEXT.
* configure: Regenerate. * Makefile.in (just-check): Export EXEEXT. * lib/gdb.exp ($EXEEXT): Import from environment. * gdb.base/maint.exp: Expect $EXEEXT in executable name. Don't expect "maint dump-me" on Cygwin. * gdb.base/reread.exp ($binfile, $binfile1, $binfile2): Append $EXEEXT.
Diffstat (limited to 'gdb/testsuite/gdb.base/reread.exp')
-rw-r--r--gdb/testsuite/gdb.base/reread.exp7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.base/reread.exp b/gdb/testsuite/gdb.base/reread.exp
index ccdabd5306a..b76fc5ab18e 100644
--- a/gdb/testsuite/gdb.base/reread.exp
+++ b/gdb/testsuite/gdb.base/reread.exp
@@ -30,7 +30,8 @@ set prototypes 1
set testfile1 "reread1"
set srcfile1 ${testfile1}.c
-set binfile1 ${objdir}/${subdir}/${testfile1}
+# Cygwin needs $EXEEXT.
+set binfile1 ${objdir}/${subdir}/${testfile1}$EXEEXT
if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile1}" executable {debug additional_flags=-w}] != "" } {
gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
@@ -40,7 +41,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile1}" "${binfile1}" executable {d
set testfile2 "reread2"
set srcfile2 ${testfile2}.c
-set binfile2 ${objdir}/${subdir}/${testfile2}
+set binfile2 ${objdir}/${subdir}/${testfile2}$EXEEXT
if { [gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${binfile2}" executable {debug additional_flags=-w}] != "" } {
gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
@@ -49,7 +50,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${binfile2}" executable {d
# Start with a fresh gdb.
set testfile "reread"
-set binfile ${objdir}/${subdir}/${testfile}
+set binfile ${objdir}/${subdir}/${testfile}$EXEEXT
gdb_start
gdb_reinitialize_dir $srcdir/$subdir