summaryrefslogtreecommitdiffstats
path: root/lldb/test/lang
diff options
context:
space:
mode:
authorChaoren Lin <chaorenl@google.com>2015-03-03 22:46:20 +0000
committerChaoren Lin <chaorenl@google.com>2015-03-03 22:46:20 +0000
commit2fd9fe722557c509178c52b7608cfd3947614962 (patch)
tree5f2f8bb39a7b8ee433288ff5050cde585478003f /lldb/test/lang
parent40a0b594eb7daf5b99e63228a8cd9054bb5f8989 (diff)
downloadbcm5719-llvm-2fd9fe722557c509178c52b7608cfd3947614962.tar.gz
bcm5719-llvm-2fd9fe722557c509178c52b7608cfd3947614962.zip
Remove unnecessary platform specific code from TestGlobalVariables.
llvm-svn: 231159
Diffstat (limited to 'lldb/test/lang')
-rw-r--r--lldb/test/lang/c/global_variables/TestGlobalVariables.py14
1 files changed, 1 insertions, 13 deletions
diff --git a/lldb/test/lang/c/global_variables/TestGlobalVariables.py b/lldb/test/lang/c/global_variables/TestGlobalVariables.py
index 4abca5f7c3e..0cc78dccebd 100644
--- a/lldb/test/lang/c/global_variables/TestGlobalVariables.py
+++ b/lldb/test/lang/c/global_variables/TestGlobalVariables.py
@@ -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',
OpenPOWER on IntegriCloud