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

689258
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
689258
From: Fedora GDB patches <invalid@email.com>
689258
Date: Fri, 27 Oct 2017 21:07:50 +0200
689258
Subject: gdb-testsuite-readline63-sigint.patch
689258
689258
;; [testsuite] Fix false selftest.exp FAIL from system readline-6.3+ (Patrick Palka).
689258
;;=fedoratest
689258
689258
gdb/users/ppalka/readline-7.0-update
689258
commit 379059215e823555a37a8dc7e02cef8fd86566e4
689258
https://sourceware.org/ml/gdb-patches/2015-07/msg00422.html
689258
Message-Id: <1436927724-4059-1-git-send-email-patrick@parcs.ath.cx>
689258
https://bugzilla.redhat.com/show_bug.cgi?id=1301175
689258
689258
diff --git a/gdb/testsuite/gdb.gdb/selftest.exp b/gdb/testsuite/gdb.gdb/selftest.exp
689258
--- a/gdb/testsuite/gdb.gdb/selftest.exp
689258
+++ b/gdb/testsuite/gdb.gdb/selftest.exp
689258
@@ -113,9 +113,25 @@ proc test_with_self { } {
689258
     }
689258
     
689258
     set description "send SIGINT signal to child process"
689258
-    gdb_test "signal SIGINT" \
689258
-	"Continuing with signal SIGINT.*" \
689258
-	"$description"
689258
+    gdb_test_multiple "signal SIGINT" "$description" {
689258
+	-re "^signal SIGINT\r\nContinuing with signal SIGINT.\r\nQuit\r\n" {
689258
+	    pass "$description"
689258
+	}
689258
+    }
689258
+
689258
+    set description "send ^C to child process again"
689258
+    send_gdb "\003"
689258
+    gdb_expect {
689258
+	-re "(Thread .*|Program) received signal SIGINT.*$gdb_prompt $" {
689258
+	    pass "$description"
689258
+	}
689258
+	-re ".*$gdb_prompt $" {
689258
+	    fail "$description"
689258
+	}
689258
+	timeout {
689258
+	    fail "$description (timeout)"
689258
+	}
689258
+    }
689258
 
689258
     # Switch back to the GDB thread if Guile support is linked in.
689258
     # "signal SIGINT" could also switch the current thread.