From: Cleber Rosa <crosa@redhat.com>
To: gdb-patches@sourceware.org
Cc: areis@redhat.com, palves@redhat.com, Cleber Rosa <crosa@redhat.com>
Subject: [PATCH 3/4] GDB/MI: add test for command -inferior-tty-show
Date: Mon, 05 Oct 2015 11:47:00 -0000 [thread overview]
Message-ID: <1444045617-14526-4-git-send-email-crosa@redhat.com> (raw)
In-Reply-To: <1444045617-14526-1-git-send-email-crosa@redhat.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
next prev parent reply other threads:[~2015-10-05 11:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-05 11:47 [PATCH 0/4]: GDB: inferior standard I/O redirection Cleber Rosa
2015-10-05 11:47 ` Cleber Rosa [this message]
2015-10-21 11:19 ` [PATCH 3/4] GDB/MI: add test for command -inferior-tty-show Pedro Alves
2015-10-05 11:47 ` [PATCH 1/4] GDB: inferior standard I/O redirection Cleber Rosa
2015-10-05 12:23 ` Eli Zaretskii
2015-10-21 11:18 ` Pedro Alves
2015-10-05 11:47 ` [PATCH 2/4] GDB/MI: fix and simplify mi_valid_noargs utility function Cleber Rosa
2015-10-21 11:19 ` Pedro Alves
2015-10-05 11:54 ` [PATCH 4/4] GDB/MI: inferior standard I/O redirection Cleber Rosa
2015-10-05 12:26 ` Eli Zaretskii
2015-10-21 11:19 ` Pedro Alves
2015-10-22 10:55 ` Vladimir Prus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1444045617-14526-4-git-send-email-crosa@redhat.com \
--to=crosa@redhat.com \
--cc=areis@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=palves@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox