Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: gdb/testsuite/gdb.mi/mi-undefined-cmd.exp

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/testsuite/gdb.mi/mi-syn-frame.exp ('k') | gdb/testsuite/gdb.mi/mi-until.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.mi/mi-undefined-cmd.exp
diff --git a/gdb/testsuite/gdb.mi/mi2-hack-cli.exp b/gdb/testsuite/gdb.mi/mi-undefined-cmd.exp
similarity index 58%
rename from gdb/testsuite/gdb.mi/mi2-hack-cli.exp
rename to gdb/testsuite/gdb.mi/mi-undefined-cmd.exp
index fb1e4d7d002bee3952cb509aecc5a58a91e9aa76..8df0a76ab879063a1a0cd9b10589e2502101c124 100644
--- a/gdb/testsuite/gdb.mi/mi2-hack-cli.exp
+++ b/gdb/testsuite/gdb.mi/mi-undefined-cmd.exp
@@ -1,4 +1,4 @@
-# Copyright 1999, 2001, 2003, 2007-2012 Free Software Foundation, Inc.
+# Copyright 2013 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -13,24 +13,21 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-# Some basic checks for the CLI.
-
load_lib mi-support.exp
-set MIFLAGS "-i=mi2"
+set MIFLAGS "-i=mi"
gdb_exit
if [mi_gdb_start] {
continue
}
-mi_gdb_test "show architecture" \
- "&\"show architecture\\\\n\"\r\n~\"The target architecture.*\"\r\n\\^done" \
- "show architecture"
-mi_gdb_test "47show architecture" \
- "&\"show architecture\\\\n\"\r\n~\"The target architecture.*\"\r\n47\\^done" \
- "47show architecture"
+# First, verify that the debugger correctly advertises support
+# for the "undefined-command" error code...
+mi_gdb_test "-list-features" \
+ "\\^done,features=\\\[.*\"undefined-command-error-code\".*\\\]" \
+ "-list-features should include \"undefined-command-error-code\""
-mi_gdb_exit
-return 0
+mi_gdb_test "-undefined-command" \
+ "\\^error,.*,code=\"undefined-command\"" \
+ "error code when executing undefined command"
« no previous file with comments | « gdb/testsuite/gdb.mi/mi-syn-frame.exp ('k') | gdb/testsuite/gdb.mi/mi-until.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698