[Lldb-commits] [PATCH] [TestGlobalVariables] LD_LIBRARY_PATH should be process working directory.
Chaoren Lin
chaorenl at google.com
Tue Mar 3 12:02:46 PST 2015
Hi ovyalov, sivachandra, clayborg,
The inferior can load the library now, but the remote test is still failing
because of a module loading problem in LLDB.
http://reviews.llvm.org/D8038
Files:
test/lang/c/global_variables/TestGlobalVariables.py
Index: test/lang/c/global_variables/TestGlobalVariables.py
===================================================================
--- test/lang/c/global_variables/TestGlobalVariables.py
+++ test/lang/c/global_variables/TestGlobalVariables.py
@@ -34,9 +34,9 @@
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):
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8038.21125.patch
Type: text/x-patch
Size: 1162 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150303/075c90dc/attachment.bin>
More information about the lldb-commits
mailing list