[Lldb-commits] [lldb] r231159 - Remove unnecessary platform specific code from TestGlobalVariables.

Chaoren Lin chaorenl at google.com
Tue Mar 3 14:46:20 PST 2015


Author: chaoren
Date: Tue Mar  3 16:46:20 2015
New Revision: 231159

URL: http://llvm.org/viewvc/llvm-project?rev=231159&view=rev
Log:
Remove unnecessary platform specific code from TestGlobalVariables.

Modified:
    lldb/trunk/test/lang/c/global_variables/TestGlobalVariables.py

Modified: lldb/trunk/test/lang/c/global_variables/TestGlobalVariables.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/global_variables/TestGlobalVariables.py?rev=231159&r1=231158&r2=231159&view=diff
==============================================================================
--- lldb/trunk/test/lang/c/global_variables/TestGlobalVariables.py (original)
+++ lldb/trunk/test/lang/c/global_variables/TestGlobalVariables.py Tue Mar  3 16:46:20 2015
@@ -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',





More information about the lldb-commits mailing list