diff options
author | Alan Modra <amodra@gmail.com> | 2022-12-18 12:54:49 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-12-18 19:11:32 +1030 |
commit | 3bbdb440d0eb9333c969e87d75996011bcdc9aff (patch) | |
tree | a6645fea85e5a231a8bd6da9d90fc5a57aab9384 /ld | |
parent | 4ff87a3052e4fb4a56def9a33dfd97a1e0fd0eff (diff) | |
download | gdb-3bbdb440d0eb9333c969e87d75996011bcdc9aff.zip gdb-3bbdb440d0eb9333c969e87d75996011bcdc9aff.tar.gz gdb-3bbdb440d0eb9333c969e87d75996011bcdc9aff.tar.bz2 |
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.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ld-bootstrap/bootstrap.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/testsuite/ld-bootstrap/bootstrap.exp b/ld/testsuite/ld-bootstrap/bootstrap.exp index de82a2b..57f1844 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 } |