summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChaoren Lin <chaorenl@google.com>2015-03-03 20:11:48 +0000
committerChaoren Lin <chaorenl@google.com>2015-03-03 20:11:48 +0000
commit6efb8bd947edae14936c6cbff7585e093f5f91a1 (patch)
tree2d097942d458006cc82c9a9b6f086cde3d0af791
parentb3be398c67ddb8d2f98480cc5540607a68b1ac88 (diff)
downloadbcm5719-llvm-6efb8bd947edae14936c6cbff7585e093f5f91a1.tar.gz
bcm5719-llvm-6efb8bd947edae14936c6cbff7585e093f5f91a1.zip
[TestGlobalVariables] LD_LIBRARY_PATH should be process working directory.
Summary: The inferior can load the library now, but the remote test is still failing because of a module loading problem in LLDB. Reviewers: ovyalov, sivachandra, clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D8038 llvm-svn: 231120
-rw-r--r--lldb/test/lang/c/global_variables/TestGlobalVariables.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/lldb/test/lang/c/global_variables/TestGlobalVariables.py b/lldb/test/lang/c/global_variables/TestGlobalVariables.py
index ae0cbf139ab..4abca5f7c3e 100644
--- a/lldb/test/lang/c/global_variables/TestGlobalVariables.py
+++ b/lldb/test/lang/c/global_variables/TestGlobalVariables.py
@@ -34,9 +34,14 @@ class GlobalVariablesTestCase(TestBase):
if sys.platform.startswith("freebsd") or sys.platform.startswith("linux"):
# LD_LIBRARY_PATH must be set so the shared libraries are found on startup
if "LD_LIBRARY_PATH" in os.environ:
- self.runCmd("settings set target.env-vars " + self.dylibPath + "=" + os.environ["LD_LIBRARY_PATH"] + ":" + os.getcwd())
+ self.runCmd("settings set target.env-vars " +
+ self.dylibPath + "=" +
+ os.environ["LD_LIBRARY_PATH"] + ":" +
+ self.get_process_working_directory())
else:
- self.runCmd("settings set target.env-vars " + self.dylibPath + "=" + os.getcwd())
+ self.runCmd("settings set target.env-vars " +
+ self.dylibPath + "=" +
+ self.get_process_working_directory())
self.addTearDownHook(lambda: self.runCmd("settings remove target.env-vars " + self.dylibPath))
def global_variables(self):
OpenPOWER on IntegriCloud