Remove unnecessary platform specific code from TestGlobalVariables.

llvm-svn: 231159
This commit is contained in:
Chaoren Lin 2015-03-03 22:46:20 +00:00
parent 40a0b594eb
commit 2fd9fe7225
1 changed files with 1 additions and 13 deletions

View File

@ -31,18 +31,6 @@ class GlobalVariablesTestCase(TestBase):
self.source = 'main.c'
self.line = line_number(self.source, '// Set break point at this line.')
self.shlib_names = ["a"]
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"] + ":" +
self.get_process_working_directory())
else:
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):
"""Test 'frame variable --scope --no-args' which omits args and shows scopes."""
@ -59,7 +47,7 @@ class GlobalVariablesTestCase(TestBase):
# Now launch the process, and do not stop at entry point.
process = target.LaunchSimple (None, environment, self.get_process_working_directory())
self.assertTrue(process, PROCESS_IS_VALID)
# The stop reason of the thread should be breakpoint.
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
substrs = ['stopped',