From 68491f50720de7da61866a478fa1971baa68e4e9 Mon Sep 17 00:00:00 2001 From: Lawrence D'Anna Date: Tue, 8 Oct 2019 01:16:29 +0000 Subject: 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 --- .../test/functionalities/load_using_paths/TestLoadUsingPaths.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/load_using_paths') diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/load_using_paths/TestLoadUsingPaths.py b/lldb/packages/Python/lldbsuite/test/functionalities/load_using_paths/TestLoadUsingPaths.py index 0ffce6213ef..e9cafba8932 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/load_using_paths/TestLoadUsingPaths.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/load_using_paths/TestLoadUsingPaths.py @@ -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) -- cgit v1.2.3