test fix: TestLoadUsingPaths should use realpath

Summary:
TestLoadUsingPaths will fail if the build directory has
symlinks in its path, because the real paths reported by
the debugger won't match the symlink-laden paths it's expecting.

This can be solved just by using os.path.realpath on the base
path for the test.

Reviewers: JDevlieghere, jasonmolenda, labath

Reviewed By: JDevlieghere

Subscribers: lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D68618

llvm-svn: 374007
This commit is contained in:
Lawrence D'Anna 2019-10-08 01:16:29 +00:00
parent 3dab5e825b
commit 68491f5072
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class LoadUsingPathsTestCase(TestBase):
ext = 'dylib'
self.lib_name = 'libloadunload.' + ext
self.wd = self.getBuildDir()
self.wd = os.path.realpath(self.getBuildDir())
self.hidden_dir = os.path.join(self.wd, 'hidden')
self.hidden_lib = os.path.join(self.hidden_dir, self.lib_name)