X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Ftestsuite%2Fgdb.gdb%2Fselftest.exp;h=706fca99aff6aebd0904b18e285ba18065640da9;hb=4a11f2065906976675808364ddbd1c0f77eea41f;hp=9f25a48bae2d7e4c8381d4fa8c471e4ac1aaa411;hpb=a496fbc8802f0a5719db6347a43cc869e03d83c9;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/testsuite/gdb.gdb/selftest.exp b/gdb/testsuite/gdb.gdb/selftest.exp index 9f25a48bae..706fca99af 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\r\n.* $" { + 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 #