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
This commit is contained in:
parent
9d8c2af257
commit
e5ffe78c13
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue