From e5ffe78c13a6767059e916e2896aa56d5dd5e30b Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Wed, 3 Aug 2011 18:28:41 +0000 Subject: [PATCH] Unquote the env_cmd_string variable. Skip the test case test_dyld_library_path(self) because it causes the debugserver to crash. llvm-svn: 136796 --- lldb/test/functionalities/load_unload/TestLoadUnload.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lldb/test/functionalities/load_unload/TestLoadUnload.py b/lldb/test/functionalities/load_unload/TestLoadUnload.py index 254ef9bbd7b1..88c751fd939a 100644 --- a/lldb/test/functionalities/load_unload/TestLoadUnload.py +++ b/lldb/test/functionalities/load_unload/TestLoadUnload.py @@ -65,7 +65,7 @@ class LoadUnloadTestCase(TestBase): 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 @@ class LoadUnloadTestCase(TestBase): 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])