From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-sender-0.a4lg.com (mail-sender.a4lg.com [153.120.152.154]) by sourceware.org (Postfix) with ESMTPS id 8E20C38582AF for ; Sun, 9 Oct 2022 03:56:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8E20C38582AF Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 5E14F300089; Sun, 9 Oct 2022 03:56:12 +0000 (UTC) From: Tsukasa OI To: Tsukasa OI , Andrew Burgess , Mike Frysinger Cc: gdb-patches@sourceware.org Subject: [PING^4 PATCH 1/1] sim/testsuite: PR29596, Trim extra path from arch Date: Sun, 9 Oct 2022 03:55:45 +0000 Message-Id: <58dd6537d7568332a7afc60b76b7b7c79d4d8232.1665287734.git.research_trasio@irq.a4lg.com> In-Reply-To: References: Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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: , X-List-Received-Date: Sun, 09 Oct 2022 03:56:15 -0000 If subdir begins with "./", sim_arch returned "./ARCH" instead of "ARCH" and target-specific check-sim is prevented. This commit fixes the issue (by trimming extra path from arch) to make "make check-sim" work. --- sim/testsuite/lib/sim-defs.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/testsuite/lib/sim-defs.exp b/sim/testsuite/lib/sim-defs.exp index 5528d64684b..6d8f0134089 100644 --- a/sim/testsuite/lib/sim-defs.exp +++ b/sim/testsuite/lib/sim-defs.exp @@ -14,7 +14,7 @@ proc sim_arch {} { while { [file dirname $arch] != "." } { set arch [file dirname $arch] } - return "$arch" + return [file tail $arch] } # Initialize the testrun. -- 2.34.1