0fffd6c
Index: gdb-7.12.50.20170226/gdb/testsuite/gdb.base/focus-cmd-prev.exp
0fffd6c
===================================================================
0fffd6c
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
0fffd6c
+++ gdb-7.12.50.20170226/gdb/testsuite/gdb.base/focus-cmd-prev.exp	2017-03-02 09:39:14.508461085 +0100
dbc649d
@@ -0,0 +1,40 @@
ed268f2
+# Copyright 2008 Free Software Foundation, Inc.
ed268f2
+
ed268f2
+# This program is free software; you can redistribute it and/or modify
ed268f2
+# it under the terms of the GNU General Public License as published by
ed268f2
+# the Free Software Foundation; either version 2 of the License, or
ed268f2
+# (at your option) any later version.
ed268f2
+#
ed268f2
+# This program is distributed in the hope that it will be useful,
ed268f2
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
ed268f2
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
ed268f2
+# GNU General Public License for more details.
ed268f2
+#
ed268f2
+# You should have received a copy of the GNU General Public License
ed268f2
+# along with this program; if not, write to the Free Software
ed268f2
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
ed268f2
+
ed268f2
+if $tracelevel then {
ed268f2
+    strace $tracelevel
ed268f2
+}
ed268f2
+
ed268f2
+gdb_exit
ed268f2
+gdb_start
ed268f2
+
0fffd6c
+# Do not use gdb_test or \r\n there since:
0fffd6c
+# commit d7e747318f4d04af033f16325f9b6d74f67079ec
0fffd6c
+#     Eliminate make_cleanup_ui_file_delete / make ui_file a class hierarchy
0fffd6c
+
0fffd6c
+set test "focus cmd"
0fffd6c
+gdb_test_multiple $test $test {
0fffd6c
+    -re "$gdb_prompt $" {
0fffd6c
+	pass $test
0fffd6c
+    }
0fffd6c
+}
0fffd6c
+
0fffd6c
+set test "focus prev"
0fffd6c
+gdb_test_multiple $test $test {
0fffd6c
+    -re "$gdb_prompt $" {
0fffd6c
+	pass $test
0fffd6c
+    }
0fffd6c
+}