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

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