aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/sigall.exp
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-27 23:44:51 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-27 23:44:51 +0000
commit02746bbc9f260f92b3abb96d862f4e75fd6f3fc0 (patch)
treeed11da9352953a731de7da35b050de94f2979877 /gdb/testsuite/gdb.base/sigall.exp
parent2245442480a7de9c1e2364416b928500ad87bcab (diff)
downloadgdb-02746bbc9f260f92b3abb96d862f4e75fd6f3fc0.zip
gdb-02746bbc9f260f92b3abb96d862f4e75fd6f3fc0.tar.gz
gdb-02746bbc9f260f92b3abb96d862f4e75fd6f3fc0.tar.bz2
2010-05-27 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
* gdb.base/relational.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/relocate.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/restore.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/return.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/return2.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/sepdebug.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/setshow.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/setvar.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/shlib-call.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/shreloc.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/sigall.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/sigbpt.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/signull.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/so-impl-ld.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/varargs.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/volatile.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/watch_thread_num.exp: Replace uses of send_gdb / gdb_expect. * gdb.base/watchpoint.exp: Replace uses of send_gdb / gdb_expect.
Diffstat (limited to 'gdb/testsuite/gdb.base/sigall.exp')
-rw-r--r--gdb/testsuite/gdb.base/sigall.exp24
1 files changed, 5 insertions, 19 deletions
diff --git a/gdb/testsuite/gdb.base/sigall.exp b/gdb/testsuite/gdb.base/sigall.exp
index cd436c7..1fbf3e5 100644
--- a/gdb/testsuite/gdb.base/sigall.exp
+++ b/gdb/testsuite/gdb.base/sigall.exp
@@ -54,22 +54,12 @@ proc test_one_sig {nextsig} {
set need_another_continue 1
set missed_handler 0
if $this_sig_supported then {
- send_gdb "continue\n"
if { $thissig == "IO" } {
setup_xfail "i*86-pc-linuxoldld-gnu" "i*86-pc-linuxaout-gnu"
}
- gdb_expect {
- -re "Continuing.*Program received signal SIG$thissig.*$gdb_prompt $" {
- pass "get signal $thissig"
- }
- -re ".*$gdb_prompt $" {
- fail "get signal $thissig"
- set need_another_continue 0
- }
- default {
- fail "get signal $thissig (eof or timeout)"
- }
- }
+ gdb_test "continue" \
+ "Continuing.*Program received signal SIG$thissig.*" \
+ "get signal $thissig"
}
if [ istarget "alpha-dec-osf3*" ] then {
# OSF/1-3.x is unable to continue with a job control stop signal.
@@ -84,7 +74,6 @@ proc test_one_sig {nextsig} {
}
if $need_another_continue then {
- send_gdb "continue\n"
if { $thissig == "URG" } {
setup_xfail "i*86-pc-linuxoldld-gnu" "i*86-pc-linuxaout-gnu"
}
@@ -92,7 +81,7 @@ proc test_one_sig {nextsig} {
if { $thissig == "PRIO" } {
setup_xfail "*-*-*lynx*"
}
- gdb_expect {
+ gdb_test_multiple "continue" "send signal $thissig" {
-re "Breakpoint.*handle_$thissig.*$gdb_prompt $" {
pass "send signal $thissig"
}
@@ -104,8 +93,7 @@ proc test_one_sig {nextsig} {
}
if { $missed_handler == "0" } then {
- send_gdb "signal 0\n"
- gdb_expect {
+ gdb_test_multiple "signal 0" "advance to $nextsig" {
-re "Breakpoint.*gen_$nextsig.*kill.*$gdb_prompt $" {
pass "advance to $nextsig"
set sig_supported 1
@@ -114,8 +102,6 @@ proc test_one_sig {nextsig} {
pass "advance to $nextsig"
set sig_supported 0
}
- -re ".*$gdb_prompt $" { fail "advance to $nextsig" }
- default { fail "advance to $nextsig (eof or timeout)" }
}
}
set thissig $nextsig