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

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