aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2013-07-25 21:02:34 +0000
committerEd Maste <emaste@freebsd.org>2013-07-25 21:02:34 +0000
commit7b30525922628ac36632374a2d73b7412073e849 (patch)
treef6ab206bd89579fa779835f8b9cc8ca7c92a33b6
parent073fc88e56fb12b081170e651bc6fdb8813acf3d (diff)
downloadlldb-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.py2
-rw-r--r--test/lldbtest.py2
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")),