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

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