This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 3/4] GDB/MI: add test for command -inferior-tty-show
- From: Cleber Rosa <crosa at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: areis at redhat dot com, palves at redhat dot com, Cleber Rosa <crosa at redhat dot com>
- Date: Mon, 5 Oct 2015 08:46:56 -0300
- Subject: [PATCH 3/4] GDB/MI: add test for command -inferior-tty-show
- Authentication-results: sourceware.org; auth=none
- References: <1444045617-14526-1-git-send-email-crosa at redhat dot com>
Simple test that gives arguments to a command that should take none.
gdb/testsuite/ChangeLog:
2015-10-05 Cleber Rosa <crosa@redhat.com>
* gdb.mi/mi-basics.exp: Added test for inferior-tty-show with
arguments when it should take none.
---
gdb/testsuite/gdb.mi/mi-basics.exp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gdb/testsuite/gdb.mi/mi-basics.exp b/gdb/testsuite/gdb.mi/mi-basics.exp
index 0cc24ac..476dbdc 100644
--- a/gdb/testsuite/gdb.mi/mi-basics.exp
+++ b/gdb/testsuite/gdb.mi/mi-basics.exp
@@ -258,6 +258,10 @@ proc test_setshow_inferior_tty {} {
mi_gdb_test "307-inferior-tty-show" \
"307\\\^done,inferior_tty_terminal=\"$mi_inferior_tty_name\"" \
"verify tty is correct"
+
+ mi_gdb_test "308-inferior-tty-show should-take-no-args" \
+ "308\\\^error,msg=\"-inferior-tty-show: Usage: No args\"" \
+ "make sure show takes no arguments"
}
if { [test_mi_interpreter_selection]
--
2.4.3