Don't set DYLD_LIBRARY_PATH in the Python environment (which will get passed down to

debugserver) but set it in the debugger settings (which will just get passed down to
the target).

llvm-svn: 136793
This commit is contained in:
Jim Ingham 2011-08-03 17:41:28 +00:00
parent e3b457461a
commit f169c394ca
2 changed files with 3 additions and 4 deletions

View File

@ -13,7 +13,6 @@ blacklist = {'IntegerTypesExprTestCase': 'This test class crashed',
}
"""
blacklist = {'STLTestCase': '<rdar://problem/8837118> Crashed while running the entire test suite',
'LoadUnloadTestCase' : 'taking down debugserver and causing the whole test suite to hang'
blacklist = {'STLTestCase': '<rdar://problem/8837118> Crashed while running the entire test suite'
# To skip this test case: ./dotest.py -b blacklist.py -v -w 2> ~/Developer/Log/lldbtest.log
}

View File

@ -115,8 +115,8 @@ class LoadUnloadTestCase(TestBase):
self.runCmd("process kill")
# Try again with the DYLD_LIBRARY_PATH environment variable properly set.
os.environ[dylibPath] = new_dir
self.addTearDownHook(lambda: os.environ.pop(dylibPath))
env_cmd_string = "settings set target.process.env-vars " + 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])