diff options
author | Zachary Turner <zturner@google.com> | 2015-12-14 22:58:16 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-12-14 22:58:16 +0000 |
commit | 8a927c4c102caecfffb98ec8a2745ae2012bfb13 (patch) | |
tree | 5f8dfc6ca5c128f3ef8de44280a694dccc6b92ad /lldb/packages/Python/lldbsuite | |
parent | 04621bd888614eef8d3f70683c76a31166de6cf8 (diff) | |
download | bcm5719-llvm-8a927c4c102caecfffb98ec8a2745ae2012bfb13.tar.gz bcm5719-llvm-8a927c4c102caecfffb98ec8a2745ae2012bfb13.zip |
Remove the multiplier loop.
This is leading to some kind of subtle issue related to local
functions and closures, so let's just go back to the old way for
now.
llvm-svn: 255567
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lldbtest.py | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py index 0a81305c3c9..c8b600bc2e2 100644 --- a/lldb/packages/Python/lldbsuite/test/lldbtest.py +++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py @@ -2241,15 +2241,35 @@ class LLDBTestCaseFactory(type): supported_categories = [x for x in categories if test_categories.is_supported_on_platform(x, target_platform)] - for category in supported_categories: - @add_test_categories([category]) + if "dsym" in supported_categories: + @add_test_categories(["dsym"]) @wraps(attrvalue) - def test_method(self, attrvalue=attrvalue): - self.debug_info = category + def dsym_test_method(self, attrvalue=attrvalue): + self.debug_info = "dsym" return attrvalue(self) - method_name = attrname + "_" + category - test_method.__name__ = method_name - newattrs[method_name] = test_method + dsym_method_name = attrname + "_dsym" + dsym_test_method.__name__ = dsym_method_name + newattrs[dsym_method_name] = dsym_test_method + + if "dwarf" in supported_categories: + @add_test_categories(["dwarf"]) + @wraps(attrvalue) + def dwarf_test_method(self, attrvalue=attrvalue): + self.debug_info = "dwarf" + return attrvalue(self) + dwarf_method_name = attrname + "_dwarf" + dwarf_test_method.__name__ = dwarf_method_name + newattrs[dwarf_method_name] = dwarf_test_method + + if "dwo" in supported_categories: + @add_test_categories(["dwo"]) + @wraps(attrvalue) + def dwo_test_method(self, attrvalue=attrvalue): + self.debug_info = "dwo" + return attrvalue(self) + dwo_method_name = attrname + "_dwo" + dwo_test_method.__name__ = dwo_method_name + newattrs[dwo_method_name] = dwo_test_method else: newattrs[attrname] = attrvalue return super(LLDBTestCaseFactory, cls).__new__(cls, name, bases, newattrs) |