[Lldb-commits] [PATCH] [TestGlobalVariables] LD_LIBRARY_PATH should be process working directory.
Chaoren Lin
chaorenl at google.com
Tue Mar 3 12:14:12 PST 2015
REPOSITORY
rL LLVM
http://reviews.llvm.org/D8038
Files:
lldb/trunk/test/lang/c/global_variables/TestGlobalVariables.py
Index: lldb/trunk/test/lang/c/global_variables/TestGlobalVariables.py
===================================================================
--- lldb/trunk/test/lang/c/global_variables/TestGlobalVariables.py
+++ lldb/trunk/test/lang/c/global_variables/TestGlobalVariables.py
@@ -34,9 +34,14 @@
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.21127.patch
Type: text/x-patch
Size: 1341 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150303/ef6cb8cf/attachment.bin>
More information about the lldb-commits
mailing list