From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id UjmhLmrfBWBKJQAAWB0awg (envelope-from ) for ; Mon, 18 Jan 2021 14:20:10 -0500 Received: by simark.ca (Postfix, from userid 112) id AF8B71EF80; Mon, 18 Jan 2021 14:20:10 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=DKIM_SIGNED,MAILING_LIST_MULTI, RCVD_IN_BL_SPAMCOP_NET,RDNS_NONE,T_DKIM_INVALID,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from sourceware.org (unknown [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 2858F1E945 for ; Mon, 18 Jan 2021 14:20:10 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 731763836C04; Mon, 18 Jan 2021 19:20:09 +0000 (GMT) Received: from gateway23.websitewelcome.com (gateway23.websitewelcome.com [192.185.50.129]) by sourceware.org (Postfix) with ESMTPS id 0423B3861032 for ; Mon, 18 Jan 2021 19:20:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0423B3861032 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=tom@tromey.com Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway23.websitewelcome.com (Postfix) with ESMTP id CC488ED18 for ; Mon, 18 Jan 2021 13:20:03 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id 1a4IlfXHWuDoA1a4IlrZlU; Mon, 18 Jan 2021 13:20:03 -0600 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=PU+wWUQq6qI5ekODcML1jyPnyJ1yO/Ofxj2rwjVlyk0=; b=CpcJvlvljBGLEv1gEokgQDKz49 Ru//j+PD0B8b1JGqaEuH6r7DvyY3MGw43Osz9gUn50sSmnsIugBgkhwMByzsLt7syCJZ3IeCRrdBl TvSrCuHxVaRaEtuVS3fcotV5f; Received: from 97-122-65-38.hlrn.qwest.net ([97.122.65.38]:43402 helo=localhost.localdomain) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1l1a4I-002eOs-4G; Mon, 18 Jan 2021 12:20:02 -0700 From: Tom Tromey To: gdb-patches@sourceware.org Subject: [PATCH] Disable bracketed paste mode in GDB tests Date: Mon, 18 Jan 2021 12:20:00 -0700 Message-Id: <20210118192000.1489237-1-tom@tromey.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.65.38 X-Source-L: No X-Exim-ID: 1l1a4I-002eOs-4G X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-65-38.hlrn.qwest.net (localhost.localdomain) [97.122.65.38]:43402 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tom Tromey Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" I have a patch to import GNU readline 8.1 into GDB. However, when running the tests, there were a number of failures due to "bracketed paste mode". This is a terminal feature that readline 8.1 enables by default. The simplest way to work around this was to always make a ".inputrc" for GDB tests that will tell readline to disable brackted paste mode. gdb/testsuite/ChangeLog 2021-01-18 Tom Tromey * lib/gdb.exp (default_gdb_init): Set INPUTRC to a cached file. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/lib/gdb.exp | 13 ++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index ae24fe2f49c..7b0420d8f00 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -5265,13 +5265,12 @@ proc default_gdb_init { test_file_name } { setenv LC_CTYPE C setenv LANG C - # Don't let a .inputrc file or an existing setting of INPUTRC mess up - # the test results. Even if /dev/null doesn't exist on the particular - # platform, the readline library will use the default setting just by - # failing to open the file. OTOH, opening /dev/null successfully will - # also result in the default settings being used since nothing will be - # read from this file. - setenv INPUTRC "/dev/null" + # Don't let a .inputrc file or an existing setting of INPUTRC mess + # up the test results. Certain tests (style tests and TUI tests) + # want to set the terminal to a non-"dumb" value, and for those we + # want to disable bracketed paste mode. It seems harmless to + # simply always do this. + setenv INPUTRC [cached_file inputrc "set enable-bracketed-paste off"] # This disables style output, which would interfere with many # tests. -- 2.26.2