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.
This commit is contained in:
Alan Modra
2022-12-18 12:54:49 +10:30
parent 4ff87a3052
commit 3bbdb440d0

View File

@ -106,7 +106,7 @@ foreach flags $test_flags {
# This test can only be run if we have the ld build directory, # This test can only be run if we have the ld build directory,
# since we need the object files. # since we need the object files.
if {$ld != "$objdir/ld-new"} { if {[file normalize $ld] != [file normalize $objdir/ld-new]} {
untested $testname untested $testname
continue continue
} }