[Lldb-commits] [lldb] r136796 - /lldb/trunk/test/functionalities/load_unload/TestLoadUnload.py

Johnny Chen johnny.chen at apple.com
Wed Aug 3 11:28:41 PDT 2011


Author: johnny
Date: Wed Aug  3 13:28:41 2011
New Revision: 136796

URL: http://llvm.org/viewvc/llvm-project?rev=136796&view=rev
Log:
Unquote the env_cmd_string variable.
Skip the test case test_dyld_library_path(self) because it causes the debugserver to crash.

Modified:
    lldb/trunk/test/functionalities/load_unload/TestLoadUnload.py

Modified: lldb/trunk/test/functionalities/load_unload/TestLoadUnload.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/load_unload/TestLoadUnload.py?rev=136796&r1=136795&r2=136796&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/load_unload/TestLoadUnload.py (original)
+++ lldb/trunk/test/functionalities/load_unload/TestLoadUnload.py Wed Aug  3 13:28:41 2011
@@ -65,7 +65,7 @@
         self.expect("target modules list", "LLDB successfully locates the relocated dynamic library",
             substrs = [new_dylib])
 
-        
+    @unittest2.skip("debugserver crashes?")
     def test_dyld_library_path(self):
         """Test DYLD_LIBRARY_PATH after moving libd.dylib, which defines d_function, somewhere else."""
 
@@ -115,8 +115,8 @@
         self.runCmd("process kill")
 
         # Try again with the DYLD_LIBRARY_PATH environment variable properly set.
-        env_cmd_string = "settings set target.process.env-vars " + dylibPath + "=" + new_dir
-        self.runCmd("env_cmd_string")
+        env_cmd_string = 'settings set target.process.env-vars ["%s"]=%s' % (dylibPath, new_dir)
+        self.runCmd(env_cmd_string)
         self.runCmd("run")
         self.expect("thread backtrace", STOPPED_DUE_TO_BREAKPOINT,
             patterns = ["frame #0.*d_function.*at d.c:%d" % self.line_d_function])





More information about the lldb-commits mailing list