mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 19:23:33 +08:00
2004-07-12 Andrew Cagney <cagney@gnu.org>
* gdb.base/annota1.exp: Cleanup corefile test name. * gdb.base/annota3.exp: Ditto.
This commit is contained in:
parent
080228b217
commit
419e626baa
@ -1,3 +1,8 @@
|
||||
2004-07-12 Andrew Cagney <cagney@gnu.org>
|
||||
|
||||
* gdb.base/annota1.exp: Cleanup corefile test name.
|
||||
* gdb.base/annota3.exp: Ditto.
|
||||
|
||||
2004-07-12 Andrew Cagney <cagney@gnu.org>
|
||||
|
||||
* gdb.base/signals.exp: Clean up copyright, re-indent.
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user