diff options
author | Patrick Palka <patrick@parcs.ath.cx> | 2015-05-18 07:38:53 -0400 |
---|---|---|
committer | Patrick Palka <patrick@parcs.ath.cx> | 2015-05-18 09:51:39 -0400 |
commit | 30381905027c37181180a2d850316396df22eab3 (patch) | |
tree | 85f48f3ade4e67bb97ca1869bc0b6c50dada39b0 | |
parent | f9554d211f51d133413e0d0435dcd2805cd21eaa (diff) | |
download | gdb-users/ppalka/readline-6.3-update.zip gdb-users/ppalka/readline-6.3-update.tar.gz gdb-users/ppalka/readline-6.3-update.tar.bz2 |
Update "signal SIGINT" testusers/ppalka/readline-6.3-update
-rw-r--r-- | gdb/testsuite/gdb.gdb/selftest.exp | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.gdb/selftest.exp b/gdb/testsuite/gdb.gdb/selftest.exp index 9f25a48..6170ac8 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 # |