Blame SOURCES/gdb-testsuite-readline63-sigint.patch

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