From patchwork Mon Oct 5 11:46:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cleber Rosa X-Patchwork-Id: 8922 Received: (qmail 95915 invoked by alias); 5 Oct 2015 11:47:13 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 95830 invoked by uid 89); 5 Oct 2015 11:47:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 05 Oct 2015 11:47:10 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 5215A2653 for ; Mon, 5 Oct 2015 11:47:09 +0000 (UTC) Received: from x220.tallawa.org (ovpn-113-80.phx2.redhat.com [10.3.113.80]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t95Bl8UG004694; Mon, 5 Oct 2015 07:47:09 -0400 From: Cleber Rosa To: gdb-patches@sourceware.org Cc: areis@redhat.com, palves@redhat.com, Cleber Rosa Subject: [PATCH 3/4] GDB/MI: add test for command -inferior-tty-show Date: Mon, 5 Oct 2015 08:46:56 -0300 Message-Id: <1444045617-14526-4-git-send-email-crosa@redhat.com> In-Reply-To: <1444045617-14526-1-git-send-email-crosa@redhat.com> References: <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 * 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]