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

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