From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by sourceware.org (Postfix) with ESMTPS id 64D1D396E02A for ; Sun, 18 Dec 2022 10:11:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 64D1D396E02A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-x62a.google.com with SMTP id x2so6353313plb.13 for ; Sun, 18 Dec 2022 02:11:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=GpN5qw8qMsEiZceCzwrj0kJkMC50P9tuKOE5FaPatco=; b=XMgsKpOn7FQD1BKA1cs6QXv8z6ZfsFX/5ht7L4TLycDnlzhWcUTTSXI3Uqbe1Ytk9h uLOgP/yvXA6btpgQd92Q7pnsS8bfjeamz9AdLjru2K6tgtJCGRXpjJstNmos0yYF5dHT 9O0xp0P1U0y/jAXoyh+uLJ5ey4iifRNV0ZtyuupitFwxKv/pUudLGdKhaIysWEdTArYU dFWlSgOpSVGbLTnggY8iM/IHPKM2BmEE7pVdbqWb6VqlbD3mVSNn8IhNeRAAcmXg1k2c TQ7oRcoXDG78V/onIuAUjVjqh6vsHSggZV2OwhRRoarx6mXymK+XFJD2F7V+HZ4nMzr/ +Hqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GpN5qw8qMsEiZceCzwrj0kJkMC50P9tuKOE5FaPatco=; b=XLeHeBiIpWLkU4sc/qAeEd4RHDDq3VwsJ5r27r56ANshvUmncvGz6C7GAeYePOg3Nf lz5eh61zeKvKQJ3vl8FbsN1qhFb26hxHAwhP5IZ8K9H+wf7BKneu7miMgduVqdMmwKyw xwY5O7pDr4Sd3T0EyRyyrmSuyWyaTVgABsMenWOPZ9Wej5iPjPjpWErWw/Zr74u/uVMh /ZOjDXwLftbJuAe+rC/om4wddyFzuWZ7imY0lkDMT+7HxznKZX89HKeFxE4EM5PdB8b0 iEfuBmkx85Lz0E8Jvvm2/W1MeOF3QFaCDpd2y6TT5i2pGy9ANIlNx4mkDAly5J79T9we 3i9A== X-Gm-Message-State: ANoB5pn2okziDqy7Uc70N9AAfYkOvCuq23akGLBagwWIbdoqp5gXRcj1 Vyaurv8s1pqjRW91E59dYHeCvMJ+Akg= X-Google-Smtp-Source: AA0mqf5r3fHl6mCd91yhSj3klETihxwIIaEVnVKvXBYqXCHPgcDHaxDjAzzK4fXi6iq9QA0ekViSEA== X-Received: by 2002:a17:903:2051:b0:189:d4c5:f155 with SMTP id q17-20020a170903205100b00189d4c5f155mr35910035pla.63.1671358284923; Sun, 18 Dec 2022 02:11:24 -0800 (PST) Received: from squeak.grove.modra.org ([2406:3400:51d:8cc0:131b:2705:9610:b847]) by smtp.gmail.com with ESMTPSA id n15-20020a170903110f00b00189651e5c26sm4760511plh.236.2022.12.18.02.11.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Dec 2022 02:11:24 -0800 (PST) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id C02211142D3B; Sun, 18 Dec 2022 20:41:21 +1030 (ACDT) Date: Sun, 18 Dec 2022 20:41:21 +1030 From: Alan Modra To: binutils@sourceware.org Subject: ld bootstrap test in build dir with path containing symlinks Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3035.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,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 List-Id: This allows the bootstrap test to run if you have a symlink somewhere in the build path directory. $ld depends on $base_dir which is set via tcl [pwd], collapsing the symlink like /usr/bin/pwd, while $objdir contains the symlink. * testsuite/ld-bootstrap/bootstrap.exp: Normalize paths when checking for ld build directory. diff --git a/ld/testsuite/ld-bootstrap/bootstrap.exp b/ld/testsuite/ld-bootstrap/bootstrap.exp index de82a2bfbff..57f1844d530 100644 --- a/ld/testsuite/ld-bootstrap/bootstrap.exp +++ b/ld/testsuite/ld-bootstrap/bootstrap.exp @@ -106,7 +106,7 @@ foreach flags $test_flags { # This test can only be run if we have the ld build directory, # since we need the object files. - if {$ld != "$objdir/ld-new"} { + if {[file normalize $ld] != [file normalize $objdir/ld-new]} { untested $testname continue } -- Alan Modra Australia Development Lab, IBM