From patchwork Tue Nov 10 07:56:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Jie X-Patchwork-Id: 9631 Received: (qmail 123418 invoked by alias); 10 Nov 2015 07:56:58 -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 123316 invoked by uid 89); 10 Nov 2015 07:56:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.6 required=5.0 tests=AWL, BAYES_50, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: heian.cn.fujitsu.com Received: from cn.fujitsu.com (HELO heian.cn.fujitsu.com) (59.151.112.132) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 10 Nov 2015 07:56:57 +0000 Received: from bogon (HELO edo.cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 10 Nov 2015 15:56:41 +0800 Received: from G08CNEXCHPEKD02.g08.fujitsu.local (localhost.localdomain [127.0.0.1]) by edo.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id tAA7uESR018350 for ; Tue, 10 Nov 2015 15:56:14 +0800 Received: from localhost.localdomain (10.167.226.91) by G08CNEXCHPEKD02.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.181.6; Tue, 10 Nov 2015 15:56:53 +0800 From: Fei Jie To: Subject: [PATCH v3 1/4] Add testcases to default.exp Date: Tue, 10 Nov 2015 15:56:25 +0800 Message-ID: <1447142188-20759-2-git-send-email-feij.fnst@cn.fujitsu.com> In-Reply-To: <1447142188-20759-1-git-send-email-feij.fnst@cn.fujitsu.com> References: <1447142188-20759-1-git-send-email-feij.fnst@cn.fujitsu.com> MIME-Version: 1.0 X-IsSubscribed: yes add testcases about info: *info extensions *info handle *info scope *info win add testcases about set width: *set width -1 gdb/testsuite/ChangeLog: * gdb.base/default.exp: Add new testcases. --- gdb/testsuite/gdb.base/default.exp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gdb/testsuite/gdb.base/default.exp b/gdb/testsuite/gdb.base/default.exp index 4395c98..279dbb9 100644 --- a/gdb/testsuite/gdb.base/default.exp +++ b/gdb/testsuite/gdb.base/default.exp @@ -280,6 +280,8 @@ gdb_test "info copying" # #test info display gdb_test "info display" "There are no auto-display expressions now." "info display" +#test info extensions +gdb_test "info extensions" "Filename extensions and the languages they represent.*" "info extensions" #test info frame "f" abbreviation gdb_test "info f" "No stack.*|No selected frame.*" "info frame \"f\" abbreviation" #test info frame @@ -290,6 +292,8 @@ gdb_test_no_output "info files" "info files" gdb_test "info float" "The program has no registers now." "info float" #test info functions gdb_test "info functions" "All defined functions:" "info functions" +#test info handle +gdb_test "info handle" "Signal\\s+Stop\\s+Print\\s+Pass to program\\s+Description.*" "info handle" #test info locals gdb_test "info locals" "No frame selected." "info locals" #test info program @@ -298,6 +302,8 @@ gdb_test "info program" "The program being debugged is not being run." "info pro gdb_test "info registers" "The program has no registers now." "info registers" #test info stack "s" abbreviation gdb_test "info s" "No stack." "info stack \"s\" abbreviation" +#test info scope +gdb_test "info scope" "requires an argument \\(function, line or \\*addr\\) to define a scope" "info scope" #test info stack gdb_test "info stack" "No stack." "info stack" #test info set @@ -353,6 +359,8 @@ gdb_test "info vector" "The program has no registers now." "info vector" gdb_test "info warranty" "15. *Disclaimer of Warranty.*" "info warranty" #test info watchpoints gdb_test "info watchpoints" "No watchpoints." "info watchpoints" +#test info win +gdb_test_no_output "info win" "info win" #test inspect gdb_test "inspect" "The history is empty." "inspect" #test jump @@ -549,6 +557,8 @@ gdb_test "set variable" "Argument required .expression to compute.*" "set variab gdb_test_no_output "set verbose" "set verbose" #test set width gdb_test "set width" "Argument required .integer to set it to.*" "set width" +#test set width -1 +gdb_test "set width -1" "integer -1 out of range" #test set write # This is only supported on targets which use exec.o. gdb_test_no_output "set write" "set write"