[Lldb-commits] [lldb] r168595 - /lldb/trunk/test/lang/c/global_variables/TestGlobalVariables.py

Daniel Malea daniel.malea at intel.com
Mon Nov 26 08:54:53 PST 2012


Author: dmalea
Date: Mon Nov 26 10:54:53 2012
New Revision: 168595

URL: http://llvm.org/viewvc/llvm-project?rev=168595&view=rev
Log:
Fix TestGlobalVariables.py (on Linux)
- setting LD_LIBRARY_PATH required for the test program to run correctly


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=168595&r1=168594&r2=168595&view=diff
==============================================================================
--- lldb/trunk/test/lang/c/global_variables/TestGlobalVariables.py (original)
+++ lldb/trunk/test/lang/c/global_variables/TestGlobalVariables.py Mon Nov 26 10:54:53 2012
@@ -24,6 +24,10 @@
         self.global_variables()
 
     def setUp(self):
+        if sys.platform.startswith("linux"):
+            # On Linux, environment variable must be set so the shared library is loaded correctly
+            os.environ["LD_LIBRARY_PATH"] = os.getcwd()
+
         # Call super's setUp().
         TestBase.setUp(self)
         # Find the line number to break inside main().





More information about the lldb-commits mailing list