aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/annota3.exp
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-07-12 21:39:35 +0000
committerAndrew Cagney <cagney@redhat.com>2004-07-12 21:39:35 +0000
commit419e626baa4713de61ec4d6f615f9ab4cea91a52 (patch)
treedab334ecab7d66cea79d028fab2e48feb1ae9c82 /gdb/testsuite/gdb.base/annota3.exp
parent080228b2179ef38ffb6d5eb4aca3213c843299a3 (diff)
downloadgdb-419e626baa4713de61ec4d6f615f9ab4cea91a52.zip
gdb-419e626baa4713de61ec4d6f615f9ab4cea91a52.tar.gz
gdb-419e626baa4713de61ec4d6f615f9ab4cea91a52.tar.bz2
2004-07-12 Andrew Cagney <cagney@gnu.org>
* gdb.base/annota1.exp: Cleanup corefile test name. * gdb.base/annota3.exp: Ditto.
Diffstat (limited to 'gdb/testsuite/gdb.base/annota3.exp')
-rw-r--r--gdb/testsuite/gdb.base/annota3.exp18
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/testsuite/gdb.base/annota3.exp b/gdb/testsuite/gdb.base/annota3.exp
index 93086ef..27c0960 100644
--- a/gdb/testsuite/gdb.base/annota3.exp
+++ b/gdb/testsuite/gdb.base/annota3.exp
@@ -387,20 +387,20 @@ gdb_expect_list "signal sent" "$gdb_prompt$" {
}
-# Check for production of a core file
-# and remove it!
+# Check for production of a core file and remove it!
set exec_output [remote_exec build "ls core"]
+set test "cleanup core file"
if [ regexp "core not found" $exec_output] {
- pass "No core dumped"
+ pass "$test (not dumped)"
} else {
- if [ regexp "No such file or directory" $exec_output] {
- pass "No core dumped"
- } else {
- remote_exec build "rm -f core"
- pass "Core dumped and removed"
- }
+ if [ regexp "No such file or directory" $exec_output] {
+ pass "$test (not dumped)"
+ } else {
+ remote_exec build "rm -f core"
+ pass "$test (removed)"
+ }
}
# restore the original prompt for the rest of the testsuite