[Lldb-commits] [lldb] r190285 - Set shared library path on FreeBSD as on Linux for tests

Ed Maste emaste at freebsd.org
Sun Sep 8 17:40:46 PDT 2013


Author: emaste
Date: Sun Sep  8 19:40:46 2013
New Revision: 190285

URL: http://llvm.org/viewvc/llvm-project?rev=190285&view=rev
Log:
Set shared library path on FreeBSD as on Linux for tests

Modified:
    lldb/trunk/test/lang/c/shared_lib/TestSharedLib.py
    lldb/trunk/test/lang/c/shared_lib_stripped_symbols/TestSharedLibStrippedSymbols.py

Modified: lldb/trunk/test/lang/c/shared_lib/TestSharedLib.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/shared_lib/TestSharedLib.py?rev=190285&r1=190284&r2=190285&view=diff
==============================================================================
--- lldb/trunk/test/lang/c/shared_lib/TestSharedLib.py (original)
+++ lldb/trunk/test/lang/c/shared_lib/TestSharedLib.py Sun Sep  8 19:40:46 2013
@@ -39,7 +39,7 @@ class SharedLibTestCase(TestBase):
         TestBase.setUp(self)
         # Find the line number to break inside main().
         self.line = line_number('main.c', '// Set breakpoint 0 here.')
-        if sys.platform.startswith("linux"):
+        if sys.platform.startswith("freebsd") or sys.platform.startswith("linux"):
             if "LD_LIBRARY_PATH" in os.environ:
                 self.runCmd("settings set target.env-vars " + self.dylibPath + "=" + os.environ["LD_LIBRARY_PATH"] + ":" + os.getcwd())
             else:

Modified: lldb/trunk/test/lang/c/shared_lib_stripped_symbols/TestSharedLibStrippedSymbols.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/shared_lib_stripped_symbols/TestSharedLibStrippedSymbols.py?rev=190285&r1=190284&r2=190285&view=diff
==============================================================================
--- lldb/trunk/test/lang/c/shared_lib_stripped_symbols/TestSharedLibStrippedSymbols.py (original)
+++ lldb/trunk/test/lang/c/shared_lib_stripped_symbols/TestSharedLibStrippedSymbols.py Sun Sep  8 19:40:46 2013
@@ -39,7 +39,7 @@ class SharedLibTestCase(TestBase):
         TestBase.setUp(self)
         # Find the line number to break inside main().
         self.line = line_number('main.c', '// Set breakpoint 0 here.')
-        if sys.platform.startswith("linux"):
+        if sys.platform.startswith("freebsd") or sys.platform.startswith("linux"):
             if "LD_LIBRARY_PATH" in os.environ:
                 self.runCmd("settings set target.env-vars " + self.dylibPath + "=" + os.environ["LD_LIBRARY_PATH"] + ":" + os.getcwd())
             else:





More information about the lldb-commits mailing list