Blame SOURCES/gdb-6.3-focus-cmd-prev-test.patch

4a80f0
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
4a80f0
From: Fedora GDB patches <invalid@email.com>
4a80f0
Date: Fri, 27 Oct 2017 21:07:50 +0200
4a80f0
Subject: gdb-6.3-focus-cmd-prev-test.patch
4a80f0
4a80f0
;; Test a crash on `focus cmd', `focus prev' commands.
4a80f0
;;=fedoratest
4a80f0
4a80f0
diff --git a/gdb/testsuite/gdb.base/focus-cmd-prev.exp b/gdb/testsuite/gdb.base/focus-cmd-prev.exp
4a80f0
new file mode 100644
4a80f0
--- /dev/null
4a80f0
+++ b/gdb/testsuite/gdb.base/focus-cmd-prev.exp
4a80f0
@@ -0,0 +1,40 @@
4a80f0
+# Copyright 2008 Free Software Foundation, Inc.
4a80f0
+
4a80f0
+# This program is free software; you can redistribute it and/or modify
4a80f0
+# it under the terms of the GNU General Public License as published by
4a80f0
+# the Free Software Foundation; either version 2 of the License, or
4a80f0
+# (at your option) any later version.
4a80f0
+#
4a80f0
+# This program is distributed in the hope that it will be useful,
4a80f0
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
4a80f0
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4a80f0
+# GNU General Public License for more details.
4a80f0
+#
4a80f0
+# You should have received a copy of the GNU General Public License
4a80f0
+# along with this program; if not, write to the Free Software
4a80f0
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4a80f0
+
4a80f0
+if $tracelevel then {
4a80f0
+    strace $tracelevel
4a80f0
+}
4a80f0
+
4a80f0
+gdb_exit
4a80f0
+gdb_start
4a80f0
+
4a80f0
+# Do not use gdb_test or \r\n there since:
4a80f0
+# commit d7e747318f4d04af033f16325f9b6d74f67079ec
4a80f0
+#     Eliminate make_cleanup_ui_file_delete / make ui_file a class hierarchy
4a80f0
+
4a80f0
+set test "focus cmd"
4a80f0
+gdb_test_multiple $test $test {
4a80f0
+    -re "$gdb_prompt $" {
4a80f0
+	pass $test
4a80f0
+    }
4a80f0
+}
4a80f0
+
4a80f0
+set test "focus prev"
4a80f0
+gdb_test_multiple $test $test {
4a80f0
+    -re "$gdb_prompt $" {
4a80f0
+	pass $test
4a80f0
+    }
4a80f0
+}