From patchwork Tue Sep 15 18:43:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandra Loosemore X-Patchwork-Id: 8712 Received: (qmail 5853 invoked by alias); 15 Sep 2015 18:43:57 -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 5843 invoked by uid 89); 15 Sep 2015 18:43:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 15 Sep 2015 18:43:55 +0000 Received: from svr-orw-fem-06.mgc.mentorg.com ([147.34.97.120]) by relay1.mentorg.com with esmtp id 1ZbvCr-0007G4-11 from Sandra_Loosemore@mentor.com for gdb-patches@sourceware.org; Tue, 15 Sep 2015 11:43:53 -0700 Received: from [IPv6:::1] (147.34.91.1) by SVR-ORW-FEM-06.mgc.mentorg.com (147.34.97.120) with Microsoft SMTP Server id 14.3.224.2; Tue, 15 Sep 2015 11:43:52 -0700 Message-ID: <55F866B9.6000106@codesourcery.com> Date: Tue, 15 Sep 2015 12:43:05 -0600 From: Sandra Loosemore User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: gdb-patches Subject: [patch, testsuite] check for readline support in gdb.base/history-duplicates.exp The testcase gdb.base/history-duplicates.exp checks the interaction between "set history remove-duplicates" and scrolling back through command history with ^P, thus it only makes sense if readline support is present. I've copied the test that currently appears in readline.exp and other places. OK to commit? -Sandra diff --git a/gdb/testsuite/gdb.base/history-duplicates.exp b/gdb/testsuite/gdb.base/history-duplicates.exp index 11bb1ed..1c3c2c2 100644 --- a/gdb/testsuite/gdb.base/history-duplicates.exp +++ b/gdb/testsuite/gdb.base/history-duplicates.exp @@ -51,9 +51,16 @@ proc run_print_on_each_thing { things } { } } -# By default the option is set to 0. gdb_exit gdb_start + +# These tests require readline support. +if { ![readline_is_used] } { + unsupported "readline isn't used." + return -1 +} + +# By default the option is set to 0. gdb_test "show history remove-duplicates" "is 0\\." # Test the "unlimited" setting.