From patchwork Sat Feb 7 14:45:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kratochvil X-Patchwork-Id: 4959 Received: (qmail 29801 invoked by alias); 7 Feb 2015 14:45:56 -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 29360 invoked by uid 89); 7 Feb 2015 14:45:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.9 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; Sat, 07 Feb 2015 14:45:55 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t17Ejr8L018049 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Sat, 7 Feb 2015 09:45:53 -0500 Received: from host1.jankratochvil.net (ovpn-116-113.ams2.redhat.com [10.36.116.113]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t17EjqJx020880; Sat, 7 Feb 2015 09:45:52 -0500 Subject: [PATCH 6/6] framefilter quit: New test From: Jan Kratochvil To: gdb-patches@sourceware.org Cc: Phil Muldoon Date: Sat, 07 Feb 2015 15:45:51 +0100 Message-ID: <20150207144551.14897.91399.stgit@host1.jankratochvil.net> In-Reply-To: <20150207144501.14897.90709.stgit@host1.jankratochvil.net> References: <20150207144501.14897.90709.stgit@host1.jankratochvil.net> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-IsSubscribed: yes Hi, it definitely does not test all the RETURN_MASK_ERROR cases. But it tests at least two of them. Jan gdb/testsuite/ChangeLog 2015-02-06 Jan Kratochvil * gdb.python/py-framefilter.exp (pagination quit - *): New tests. --- gdb/testsuite/gdb.python/py-framefilter.exp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gdb/testsuite/gdb.python/py-framefilter.exp b/gdb/testsuite/gdb.python/py-framefilter.exp index 1a0c750..2f81abe 100644 --- a/gdb/testsuite/gdb.python/py-framefilter.exp +++ b/gdb/testsuite/gdb.python/py-framefilter.exp @@ -74,6 +74,19 @@ gdb_test "bt full" \ ".*#0.*cnuf_dne.*h = 9.*f = 42.*g = 19.*bar = $hex \"Inside block x2\".*d = 15.*e = 14.*foo = $hex \"Inside block\".*str = $hex \"The End\".*st2 = $hex \"Is Near\".*b = 12.*c = 5.*" \ "bt full with filters" +# Test pagination can be aborted even for frame filters. +gdb_test_no_output "set height 5" "pagination quit - set height limited" +foreach bttype [list "bt" "bt full"] { + set test "pagination quit - $bttype" + gdb_test_multiple "$bttype" $test { + -re "$pagination_prompt$" { + pass $test + } + } + gdb_test "q" "^q\r\nQuit" "pagination quit - $bttype - q" +} +gdb_test_no_output "set height unlimited" "pagination quit - set height unlimited" + gdb_continue_to_breakpoint "Backtrace end breakpoint" # Test set/show