summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2018-01-30 17:02:42 +0000
committerAdrian Prantl <aprantl@apple.com>2018-01-30 17:02:42 +0000
commit43a68f1f0333e987459dca51421fd950c5e187fb (patch)
tree842d141ab76adcefb0cb0f4ebc1002307f5d068f /lldb/packages/Python/lldbsuite
parentd6d5a2571fa4c0d11eea08674b0ad81cfc9b8498 (diff)
downloadbcm5719-llvm-43a68f1f0333e987459dca51421fd950c5e187fb.tar.gz
bcm5719-llvm-43a68f1f0333e987459dca51421fd950c5e187fb.zip
Enforce that tests building with buildDefault set NO_DEBUG_INFO_TESTCASE
and fix resulting errors. This is a prerequisite for building each test variant in its own build directory. llvm-svn: 323789
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r--lldb/packages/Python/lldbsuite/test/api/check_public_api_headers/TestPublicAPIHeaders.py1
-rw-r--r--lldb/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py2
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/frame-diagnose/array/TestArray.py4
-rw-r--r--lldb/packages/Python/lldbsuite/test/lldbtest.py2
4 files changed, 8 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/api/check_public_api_headers/TestPublicAPIHeaders.py b/lldb/packages/Python/lldbsuite/test/api/check_public_api_headers/TestPublicAPIHeaders.py
index e8c767b68a7..5acbf9c14c3 100644
--- a/lldb/packages/Python/lldbsuite/test/api/check_public_api_headers/TestPublicAPIHeaders.py
+++ b/lldb/packages/Python/lldbsuite/test/api/check_public_api_headers/TestPublicAPIHeaders.py
@@ -16,6 +16,7 @@ from lldbsuite.test import lldbutil
class SBDirCheckerCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
+ NO_DEBUG_INFO_TESTCASE = True
def setUp(self):
TestBase.setUp(self)
diff --git a/lldb/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py b/lldb/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py
index 0d6a6002d52..767bab79e81 100644
--- a/lldb/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py
+++ b/lldb/packages/Python/lldbsuite/test/api/multithreaded/TestMultithreaded.py
@@ -15,6 +15,8 @@ import subprocess
class SBBreakpointCallbackCase(TestBase):
+ NO_DEBUG_INFO_TESTCASE = True
+
def setUp(self):
TestBase.setUp(self)
self.generateSource('driver.cpp')
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/frame-diagnose/array/TestArray.py b/lldb/packages/Python/lldbsuite/test/functionalities/frame-diagnose/array/TestArray.py
index 8daf2e48dcd..4abf1a81296 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/frame-diagnose/array/TestArray.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/frame-diagnose/array/TestArray.py
@@ -14,10 +14,12 @@ from lldbsuite.test import lldbutil
class TestArray(TestBase):
mydir = TestBase.compute_mydir(__file__)
+ def setUp(self):
+ TestBase.setUp(self)
+
@skipUnlessDarwin
@skipIfDarwinEmbedded # <rdar://problem/33842388> frame diagnose doesn't work for armv7 or arm64
def test_array(self):
- TestBase.setUp(self)
self.build()
exe = self.getBuildArtifact("a.out")
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index 2baeb8ad399..69d4937b6cf 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -1497,6 +1497,8 @@ class Base(unittest2.TestCase):
dictionary=None,
clean=True):
"""Platform specific way to build the default binaries."""
+ if self.debug_info:
+ raise Exception("buildDefault tests must set NO_DEBUG_INFO_TESTCASE")
module = builder_module()
dictionary = lldbplatformutil.finalize_build_dictionary(dictionary)
if not module.buildDefault(
OpenPOWER on IntegriCloud