aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/annota1.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/annota1.exp')
-rw-r--r--gdb/testsuite/gdb.base/annota1.exp18
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/testsuite/gdb.base/annota1.exp b/gdb/testsuite/gdb.base/annota1.exp
index dc8ba29..0c894df 100644
--- a/gdb/testsuite/gdb.base/annota1.exp
+++ b/gdb/testsuite/gdb.base/annota1.exp
@@ -459,20 +459,20 @@ gdb_expect {
}
-# 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