summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Palka <patrick@parcs.ath.cx>2015-05-18 07:38:53 -0400
committerPatrick Palka <patrick@parcs.ath.cx>2015-05-18 09:51:39 -0400
commit30381905027c37181180a2d850316396df22eab3 (patch)
tree85f48f3ade4e67bb97ca1869bc0b6c50dada39b0
parentf9554d211f51d133413e0d0435dcd2805cd21eaa (diff)
downloadbinutils-gdb-users/ppalka/readline-6.3-update.tar.gz
Update "signal SIGINT" testusers/ppalka/readline-6.3-update
-rw-r--r--gdb/testsuite/gdb.gdb/selftest.exp23
1 files changed, 20 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.gdb/selftest.exp b/gdb/testsuite/gdb.gdb/selftest.exp
index 9f25a48bae2..6170ac815f6 100644
--- a/gdb/testsuite/gdb.gdb/selftest.exp
+++ b/gdb/testsuite/gdb.gdb/selftest.exp
@@ -444,9 +444,26 @@ proc test_with_self { executable } {
}
set description "send SIGINT signal to child process"
- gdb_test "signal SIGINT" \
- "Continuing with signal SIGINT.*" \
- "$description"
+ gdb_test_multiple "signal SIGINT" "$description" {
+ -re "^signal SIGINT\r\nContinuing with signal SIGINT.\r\nQuit" {
+ pass "$description"
+ }
+ }
+
+ set description "send ^C to child process again"
+ send_gdb "\003"
+ gdb_expect {
+ -re "Program received signal SIGINT.*$gdb_prompt $" {
+ pass "$description"
+ }
+ -re ".*$gdb_prompt $" {
+ fail "$description"
+ }
+ timeout {
+ fail "$description (timeout)"
+ }
+ }
+
# get a stack trace
#