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

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