From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id gTsDCkMRYmqmWykAWB0awg (envelope-from ) for ; Thu, 23 Jul 2026 09:04:03 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=palves.net header.i=@palves.net header.a=rsa-sha256 header.s=dreamhost header.b=sWrrpc8u; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 25E3E1E09E; Thu, 23 Jul 2026 09:04:03 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 98A631E099 for ; Thu, 23 Jul 2026 09:04:02 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2234B4BA79B3 for ; Thu, 23 Jul 2026 13:04:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2234B4BA79B3 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=palves.net header.i=@palves.net header.a=rsa-sha256 header.s=dreamhost header.b=sWrrpc8u Received: from dragonfly.apple.relay.mailchannels.net (dragonfly.apple.relay.mailchannels.net [23.83.208.51]) by sourceware.org (Postfix) with ESMTPS id 9CBEC4BA9003 for ; Thu, 23 Jul 2026 13:03:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9CBEC4BA9003 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=palves.net ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9CBEC4BA9003 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=23.83.208.51 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784811805; cv=none; b=Z1FcuCP9zlymCcryflO99z9Uw+xWsdSvAjFZHRpxGlPB1cX+F012PvREFyxaIMi56br++q5ulHj9CIyyB8rRX0E0dd0rlTRojvCT9zAfSrtpszcnNvL5ZsGz3kxupaDDRI6QbkcuiAaFgs8qIxAYMheAE6+pzWBb/zCqiR53mO0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784811805; c=relaxed/simple; bh=GM+EPnjusFdJ1Jx/ORAbroaRCVkcOul99+331mToUm8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=i/jZoMJJAKMqwxD96Tr/FXZSEZ0gr2nBVr5fbIFzt2qr52dftEolQZz6TzvuAGo7nuVoTMoq2WUIenQ8LrLl9ZxxpupzmD9BDgICVltqmopWV+5fRrw77U+JlyFn8L0lsv3Z+iikv+ZcPFd+XjRXMRqba2gfj2TtSGe+RXPazVI= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=palves.net header.i=@palves.net header.a=rsa-sha256 header.s=dreamhost header.b=sWrrpc8u DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9CBEC4BA9003 X-Sender-Id: dreamhost|x-authsender|pedro@palves.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 98983461CE7 for ; Thu, 23 Jul 2026 13:03:24 +0000 (UTC) Received: from pdx1-sub0-mail-a249.dreamhost.com (100-105-0-101.trex-nlb.outbound.svc.cluster.local [100.105.0.101]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 436F546259D for ; Thu, 23 Jul 2026 13:03:24 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|pedro@palves.net X-MC-Relay: Good X-MailChannels-SenderId: dreamhost|x-authsender|pedro@palves.net X-MailChannels-Auth-Id: dreamhost X-Arch-Army: 59967ebc207f135a_1784811804511_2083200939 X-MC-Loop-Signature: 1784811804511:3032761603 X-MC-Ingress-Time: 1784811804511 Received: from pdx1-sub0-mail-a249.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.105.0.101 (trex/8.0.2); Thu, 23 Jul 2026 13:03:24 +0000 Received: from localhost (bl20-181-64.dsl.telepac.pt [2.81.181.64]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pedro@palves.net) by pdx1-sub0-mail-a249.dreamhost.com (Postfix) with ESMTPSA id 4h5WWv5M6Nz1041 for ; Thu, 23 Jul 2026 06:03:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=palves.net; s=dreamhost; t=1784811804; bh=lrUUyhTkmMyND+gVAf0thJoWp6BhdTE15nO4KOcvwms=; h=From:To:Subject:Date:Content-Transfer-Encoding; b=sWrrpc8uerxR1+bNcvLMenJ3ho0eyU2zoQb+TNT6JbRGq51cxUBluC488opCHKBk6 Fa2cqgobsTIRQI5ZEQSpuBopIn/W8kO1H85XIcSumoV6GL5UKg52dNhL6oe8PAnX6I ApOjUYVEmpXKcYBsz1RCiVL06tZpNlNvQ1UjctZb8wp8/w8/wQS4XrZJz6SDLntu7G cGwoqgRuiEmH9knDULUjUwf9zG1q6KRCvhzq59ZxLQ3Tae4EY3+a6in3qWWYF+dVbO 3Hxny3NVpDjXyI+QLB0qLXHiF+Y5y5cHj+KF1WCicPMlLEd+6mYZJXsz+TVO7aaKPP VXNUq6fuNybPg== From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 10/27] gdb.base/set-cwd.exp: Use is_windows_native_target Date: Thu, 23 Jul 2026 14:01:01 +0100 Message-ID: <20260723130118.206735-11-pedro@palves.net> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260723130118.206735-1-pedro@palves.net> References: <20260723130118.206735-1-pedro@palves.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org gdb.base/set-cwd.exp special-cases native Windows, where getcwd returns a path with backslashes that has to be converted to forward slashes before comparing against the expected directory. The check guarding that conversion uses istarget "*-*-mingw*", which only matches MinGW targets and misses windows-msvc targets, which are also native Windows. Fix it by using the is_windows_native_target helper instead. Change-Id: I4a31cfaded2d402863e59ea742501d5cece6ec77 --- gdb/testsuite/gdb.base/set-cwd.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.base/set-cwd.exp b/gdb/testsuite/gdb.base/set-cwd.exp index aae557ece27..dea87360095 100644 --- a/gdb/testsuite/gdb.base/set-cwd.exp +++ b/gdb/testsuite/gdb.base/set-cwd.exp @@ -84,7 +84,7 @@ proc test_dir {expected_dir message} { } } - if {[istarget "*-*-mingw*"]} { + if {[is_windows_native_target]} { # getcwd on native Windows uses backslashes. Convert to # forward slashes. We look for pairs of backslashes as DIR # comes from a C string printed by GDB, which escapes -- 2.54.0