aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@acorntoolworks.com>1994-07-12 19:33:37 +0000
committerJ.T. Conklin <jtc@acorntoolworks.com>1994-07-12 19:33:37 +0000
commit29a3db493f8d5400ae65b5ee62aa60698702d950 (patch)
treee1562b0cc6cb8a86d8e8ba506c0a0f3fbb1d34b5 /gdb/testsuite/gdb.base
parenta4ae37021c34e0cea8266c9c99c12b7d021dc6bf (diff)
downloadgdb-29a3db493f8d5400ae65b5ee62aa60698702d950.zip
gdb-29a3db493f8d5400ae65b5ee62aa60698702d950.tar.gz
gdb-29a3db493f8d5400ae65b5ee62aa60698702d950.tar.bz2
* gdb.base/Makefile.in: Added support for systems that name core
files by appending "core" to the program name. * gdb.base/a1-selftest.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r--gdb/testsuite/gdb.base/a1-selftest.exp10
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.base/a1-selftest.exp b/gdb/testsuite/gdb.base/a1-selftest.exp
index af9d836..a6f4656 100644
--- a/gdb/testsuite/gdb.base/a1-selftest.exp
+++ b/gdb/testsuite/gdb.base/a1-selftest.exp
@@ -429,8 +429,10 @@ GDB.*Copyright \[0-9\]+ Free Software Foundation, Inc..*$prompt $"\
# force GDB to dump core. On Solaris expect seems to not see the
# final message, even if gdb did dump core, so we check for the
# core dump explicitly if we time out.
- # bsd 386 systems append the name of the program to the corefile name.
- system rm -f core core.gdb
+ #
+ # Some systems append "core" to the name of the program; others
+ # append the name of the program to "core".
+ system rm -f core core.gdb gdb.core
send "maint dump-me\n"
expect {
-re "maint dump-me.*Should GDB dump core.*y or n. $" {
@@ -446,7 +448,7 @@ GDB.*Copyright \[0-9\]+ Free Software Foundation, Inc..*$prompt $"\
}
-re "$prompt $" { fail "GDB dumped core" }
default {
- if {[file exists core] || [file exists core.gdb]} then {
+ if {[file exists core] || [file exists core.gdb] || [file exists gdb.core]} then {
pass "GDB dumped core"
} else {
fail "GDB dumped core"
@@ -457,7 +459,7 @@ GDB.*Copyright \[0-9\]+ Free Software Foundation, Inc..*$prompt $"\
-re ".*$prompt $" { fail "GDB dumped core" }
timeout { fail "(timeout) GDB dumped core" }
}
- system rm -f core core.gdb
+ system rm -f core core.gdb gdb.core
# Set the timeout back to the value it had when we were called.
set timeout $oldtimeout