forked from OSchip/llvm-project
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:
parent
3dab5e825b
commit
68491f5072
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue