From: Alan Modra Date: Sun, 18 Dec 2022 02:24:49 +0000 (+1030) Subject: ld bootstrap test in build dir with path containing symlinks X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3bbdb440d0eb9333c969e87d75996011bcdc9aff;p=binutils-gdb.git ld bootstrap test in build dir with path containing symlinks 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 }