From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id uBZ2Lsw1K2N3zj0AWB0awg (envelope-from ) for ; Wed, 21 Sep 2022 12:03:24 -0400 Received: by simark.ca (Postfix, from userid 112) id BAEE21E112; Wed, 21 Sep 2022 12:03:24 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=rMtHPFAM; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.sourceware.org [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 4D9A41E110 for ; Wed, 21 Sep 2022 12:03:23 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AE8513858438 for ; Wed, 21 Sep 2022 16:03:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AE8513858438 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1663776201; bh=hb5CYk0yXIouXDDAZLazYytVlVq7fNC0Umea7TTNAR0=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=rMtHPFAM5k/hfzy6ZLpEMtfYc33bnYvHHk/wMN7ylrV560WAhqi+JoE90RfLu3yw9 suAbixXMCgNqtu+9HZbxs5f+bf/S57BBPxUStdMXP5QJt+WLSHnF2qR26+NCC5b+Ih 5ytsWsZ4RA42S+VBTkmXA6xaAzI5zq3s+sZNLWR8= Received: from mail-sender-0.a4lg.com (mail-sender.a4lg.com [153.120.152.154]) by sourceware.org (Postfix) with ESMTPS id AB5C9385800E for ; Wed, 21 Sep 2022 16:02:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AB5C9385800E Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 868B3300089; Wed, 21 Sep 2022 16:02:50 +0000 (UTC) To: Tsukasa OI Subject: [PING^3 PATCH 1/1] sim/testsuite: Trim extra path from arch Date: Wed, 21 Sep 2022 16:02:33 +0000 Message-Id: In-Reply-To: References: Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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: , From: Tsukasa OI via Gdb-patches Reply-To: Tsukasa OI Cc: gdb-patches@sourceware.org Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" If subdir begins with "./", sim_arch returned "./ARCH" instead of "ARCH" and target-specific check-sim is prevented. This commit fixes the issue to make "make check-sim" work. sim/ChangeLog: * testsuite/lib/sim-defs.exp: Fix return value of sim_arch by trimming leading "./". --- 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