Set shared library path on FreeBSD as on Linux for tests

llvm-svn: 190286
This commit is contained in:
Ed Maste 2013-09-09 01:16:43 +00:00
parent e3641c5d1f
commit a0e4e75b53
1 changed files with 2 additions and 2 deletions

View File

@ -28,8 +28,8 @@ class GlobalVariablesTestCase(TestBase):
TestBase.setUp(self)
# Find the line number to break inside main().
self.line = line_number('main.c', '// Set break point at this line.')
if sys.platform.startswith("linux"):
# On Linux, LD_LIBRARY_PATH must be set so the shared libraries are found on startup
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"] + ":" + os.getcwd())
else: