diff options
author | Ed Maste <emaste@freebsd.org> | 2013-07-25 21:02:34 +0000 |
---|---|---|
committer | Ed Maste <emaste@freebsd.org> | 2013-07-25 21:02:34 +0000 |
commit | 7b30525922628ac36632374a2d73b7412073e849 (patch) | |
tree | f6ab206bd89579fa779835f8b9cc8ca7c92a33b6 | |
parent | 073fc88e56fb12b081170e651bc6fdb8813acf3d (diff) | |
download | lldb-7b30525922628ac36632374a2d73b7412073e849.tar.gz |
tests: Build test code on FreeBSD the same way as on Linux
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@187155 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/api/check_public_api_headers/TestPublicAPIHeaders.py | 2 | ||||
-rw-r--r-- | test/lldbtest.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/api/check_public_api_headers/TestPublicAPIHeaders.py b/test/api/check_public_api_headers/TestPublicAPIHeaders.py index 396f7c58c..9df567c3f 100644 --- a/test/api/check_public_api_headers/TestPublicAPIHeaders.py +++ b/test/api/check_public_api_headers/TestPublicAPIHeaders.py @@ -44,7 +44,7 @@ class SBDirCheckerCase(TestBase): # For different platforms, the include statement can vary. if sys.platform.startswith("darwin"): include_stmt = "'#include <%s>' % os.path.join('LLDB', header)" - if sys.platform.startswith("linux") or os.environ.get('LLDB_BUILD_TYPE') == 'Makefile': + if sys.platform.startswith('freebsd') or sys.platform.startswith("linux") or os.environ.get('LLDB_BUILD_TYPE') == 'Makefile': include_stmt = "'#include <%s>' % os.path.join(public_api_dir, header)" list = [eval(include_stmt) for header in public_headers if (header.startswith("SB") and header.endswith(".h"))] diff --git a/test/lldbtest.py b/test/lldbtest.py index dc68de716..d4bb86c19 100644 --- a/test/lldbtest.py +++ b/test/lldbtest.py @@ -1320,7 +1320,7 @@ class Base(unittest2.TestCase): 'FRAMEWORK_INCLUDES' : "-F%s" % self.lib_dir, 'LD_EXTRAS' : "%s -rpath %s" % (dsym, self.lib_dir), } - elif sys.platform.startswith("linux") or os.environ.get('LLDB_BUILD_TYPE') == 'Makefile': + elif sys.platform.startswith('freebsd') or sys.platform.startswith("linux") or os.environ.get('LLDB_BUILD_TYPE') == 'Makefile': d = {'CXX_SOURCES' : sources, 'EXE' : exe_name, 'CFLAGS_EXTRAS' : "%s -I%s" % (stdflag, os.path.join(os.environ["LLDB_SRC"], "include")), |