summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lldbtest.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbtest.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/lldbtest.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index e87dd4c5e60..309227e3b26 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -1539,6 +1539,9 @@ class Base(unittest2.TestCase):
"""Platform specific way to build binaries with dsym info."""
if not testdir:
testdir = self.mydir
+ if self.debug_info <> "dsym":
+ raise Exception("NO_DEBUG_INFO_TESTCASE must build with buildDefault")
+
module = builder_module()
dictionary = lldbplatformutil.finalize_build_dictionary(dictionary)
if not module.buildDsym(self, architecture, compiler,
@@ -1555,6 +1558,9 @@ class Base(unittest2.TestCase):
"""Platform specific way to build binaries with dwarf maps."""
if not testdir:
testdir = self.mydir
+ if self.debug_info <> "dwarf":
+ raise Exception("NO_DEBUG_INFO_TESTCASE must build with buildDefault")
+
module = builder_module()
dictionary = lldbplatformutil.finalize_build_dictionary(dictionary)
if not module.buildDwarf(self, architecture, compiler,
@@ -1571,6 +1577,9 @@ class Base(unittest2.TestCase):
"""Platform specific way to build binaries with dwarf maps."""
if not testdir:
testdir = self.mydir
+ if self.debug_info <> "dwo":
+ raise Exception("NO_DEBUG_INFO_TESTCASE must build with buildDefault")
+
module = builder_module()
dictionary = lldbplatformutil.finalize_build_dictionary(dictionary)
if not module.buildDwo(self, architecture, compiler,
@@ -1587,6 +1596,9 @@ class Base(unittest2.TestCase):
"""Platform specific way to build binaries with gmodules info."""
if not testdir:
testdir = self.mydir
+ if self.debug_info <> "gmodules":
+ raise Exception("NO_DEBUG_INFO_TESTCASE must build with buildDefault")
+
module = builder_module()
dictionary = lldbplatformutil.finalize_build_dictionary(dictionary)
if not module.buildGModules(self, architecture, compiler,
OpenPOWER on IntegriCloud