From patchwork Fri Feb 7 14:59:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shahab Vahedi X-Patchwork-Id: 37731 Received: (qmail 81587 invoked by alias); 7 Feb 2020 15:01:03 -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 81373 invoked by uid 89); 7 Feb 2020 15:00:53 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=HContent-Transfer-Encoding:8bit X-HELO: mail-lj1-f195.google.com Received: from mail-lj1-f195.google.com (HELO mail-lj1-f195.google.com) (209.85.208.195) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 07 Feb 2020 15:00:48 +0000 Received: by mail-lj1-f195.google.com with SMTP id o15so2463875ljg.6 for ; Fri, 07 Feb 2020 07:00:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ALQUAOJLgm1po56z2Aa5vM4NSCEKWE+wBK4xOEuM3Gc=; b=Bsw5JDGaHHaXHz/PaxcrW2Ydd20hGemIZERspYI9HZJYFlTSdD/3si/E3uHNvFrKsL 8H13LibAzPXFM97Rw74u8CY8dJ2fMNrQk4hSutra1q47N9hi/xPuHsci/9BvlgyDL2iz ebfqZTJ4lVRauEJrySL/NuvDL+YK+pIhSMwUBsL+jgJQtNbkLl44fMHn8jMyRu6kcZvK N2PMwJzKZtxrSuDx7RhDJw6cwJcRzBA+/tWJ1m/Aaua5DmkR2RureA6HxagRt1r7mR6U RWo+l9Ex3GZJljmN3A8HNe2jevKk2tzAEjBNj65Txv8JKwGAgf2u/lfROzS755qwj5wM DgWA== Return-Path: Received: from archie.internal.synopsys.com ([2a03:1b20:6:f011::2d]) by smtp.gmail.com with ESMTPSA id p136sm1184412lfa.8.2020.02.07.07.00.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2020 07:00:37 -0800 (PST) From: Shahab Vahedi To: gdb-patches@sourceware.org Cc: Shahab Vahedi , Shahab Vahedi , Francois Bedard , Anton Kolesov Subject: [PATCH 01/14] gdb/testsuite: Fix an invalid is_remote check in fileio test Date: Fri, 7 Feb 2020 15:59:50 +0100 Message-Id: <20200207150003.8383-2-shahab.vahedi@gmail.com> In-Reply-To: <20200207150003.8383-1-shahab.vahedi@gmail.com> References: <20200207150003.8383-1-shahab.vahedi@gmail.com> MIME-Version: 1.0 From: Anton Kolesov Fileio test improperly checks if [is_remote host] and if it is, then uses file path that is safe to use on remote host. But the problem is that [is_remote host] returns state of *this* host, not of the remote target, where filepaths actually matter. This patch fixes that. gdb/testsuite/ChangeLog: 2016-12-16 Anton Kolesov * gdb.base/fileio.exp: Use "target" instead of "host". Signed-off-by: Anton Kolesov --- gdb/testsuite/gdb.base/fileio.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.base/fileio.exp b/gdb/testsuite/gdb.base/fileio.exp index 9735869e5190..627a685e118d 100644 --- a/gdb/testsuite/gdb.base/fileio.exp +++ b/gdb/testsuite/gdb.base/fileio.exp @@ -23,7 +23,7 @@ if [target_info exists gdb,nofileio] { standard_testfile -if {[is_remote host]} { +if {[is_remote target]} { set outdir . } else { set outdir [standard_output_file {}]