]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Update "signal SIGINT" test users/ppalka/readline-6.3-update
authorPatrick Palka <patrick@parcs.ath.cx>
Mon, 18 May 2015 11:38:53 +0000 (07:38 -0400)
committerPatrick Palka <patrick@parcs.ath.cx>
Mon, 18 May 2015 13:51:39 +0000 (09:51 -0400)
gdb/testsuite/gdb.gdb/selftest.exp

index 9f25a48bae2d7e4c8381d4fa8c471e4ac1aaa411..6170ac815f6c411a7f2b044853b12d0d711ef672 100644 (file)
@@ -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
     #