5a2431c
gdb/users/ppalka/readline-7.0-update
5a2431c
commit 379059215e823555a37a8dc7e02cef8fd86566e4
5a2431c
https://sourceware.org/ml/gdb-patches/2015-07/msg00422.html
5a2431c
Message-Id: <1436927724-4059-1-git-send-email-patrick@parcs.ath.cx>
5a2431c
https://bugzilla.redhat.com/show_bug.cgi?id=1301175
5a2431c
92913c3
Index: gdb-7.10.50.20160131/gdb/testsuite/gdb.gdb/selftest.exp
92913c3
===================================================================
92913c3
--- gdb-7.10.50.20160131.orig/gdb/testsuite/gdb.gdb/selftest.exp	2016-01-31 19:44:47.156963419 +0100
92913c3
+++ gdb-7.10.50.20160131/gdb/testsuite/gdb.gdb/selftest.exp	2016-01-31 19:45:11.245135173 +0100
92913c3
@@ -458,9 +458,25 @@
5a2431c
     }
5a2431c
     
5a2431c
     set description "send SIGINT signal to child process"
5a2431c
-    gdb_test "signal SIGINT" \
5a2431c
-	"Continuing with signal SIGINT.*" \
5a2431c
-	"$description"
5a2431c
+    gdb_test_multiple "signal SIGINT" "$description" {
5a2431c
+	-re "^signal SIGINT\r\nContinuing with signal SIGINT.\r\nQuit\r\n" {
5a2431c
+	    pass "$description"
5a2431c
+	}
5a2431c
+    }
5a2431c
+
5a2431c
+    set description "send ^C to child process again"
5a2431c
+    send_gdb "\003"
5a2431c
+    gdb_expect {
5a2431c
+	-re "(Thread .*|Program) received signal SIGINT.*$gdb_prompt $" {
5a2431c
+	    pass "$description"
5a2431c
+	}
5a2431c
+	-re ".*$gdb_prompt $" {
5a2431c
+	    fail "$description"
5a2431c
+	}
5a2431c
+	timeout {
5a2431c
+	    fail "$description (timeout)"
5a2431c
+	}
5a2431c
+    }
92913c3
 
92913c3
     # Switch back to the GDB thread if Guile support is linked in.
92913c3
     # "signal SIGINT" could also switch the current thread.