aboutsummaryrefslogtreecommitdiff
path: root/test/lang/c
diff options
context:
space:
mode:
authorDaniel Malea <daniel.malea@intel.com>2012-11-26 16:54:53 +0000
committerDaniel Malea <daniel.malea@intel.com>2012-11-26 16:54:53 +0000
commit1565469cb10b1b870b4ea920297805e62d0e70e0 (patch)
tree4946ca3d9ff3cb76cc76fa362dc699ead5a72790 /test/lang/c
parent46a645f8194b19c83345ed20cfdcf583dac9755b (diff)
downloadlldb-1565469cb10b1b870b4ea920297805e62d0e70e0.tar.gz
Fix TestGlobalVariables.py (on Linux)
- setting LD_LIBRARY_PATH required for the test program to run correctly git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@168595 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lang/c')
-rw-r--r--test/lang/c/global_variables/TestGlobalVariables.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lang/c/global_variables/TestGlobalVariables.py b/test/lang/c/global_variables/TestGlobalVariables.py
index c8f3f134c..0a355c2a0 100644
--- a/test/lang/c/global_variables/TestGlobalVariables.py
+++ b/test/lang/c/global_variables/TestGlobalVariables.py
@@ -24,6 +24,10 @@ class GlobalVariablesTestCase(TestBase):
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().