summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lldbinline.py
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2018-02-05 11:30:46 +0000
committerPavel Labath <labath@google.com>2018-02-05 11:30:46 +0000
commit55790fb7f8cbd939ed89693db6b80491bcea2be8 (patch)
tree4d57ac36afb02dd114ac1004712de03577eb5968 /lldb/packages/Python/lldbsuite/test/lldbinline.py
parent14c979da329daf35ebc99a0bd11581b0b081d813 (diff)
downloadbcm5719-llvm-55790fb7f8cbd939ed89693db6b80491bcea2be8.tar.gz
bcm5719-llvm-55790fb7f8cbd939ed89693db6b80491bcea2be8.zip
[dotest] make debug info variant accessible in setUp()
Summary: This changes the way we store the debug info variant to make it available earlier in the test bringup: instead of it being set by the test wrapper method, it is set as a *property* of the wrapper method. This way, we can inspect it as soon as self.testMethodName is initialized. The retrieval is implemented by a new function TestBase.getDebugInfo(), and all that's necessary to make it work is to change self.debug_info into self.getDebugInfo(). While searching for debug_info occurences i noticed that TestLogging is being replicated for no good reason, so I removed the replication there. Reviewers: aprantl, jingham Subscribers: eraman, JDevlieghere, lldb-commits Differential Revision: https://reviews.llvm.org/D42836 llvm-svn: 324226
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbinline.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/lldbinline.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbinline.py b/lldb/packages/Python/lldbsuite/test/lldbinline.py
index b555a464208..db3548607da 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbinline.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbinline.py
@@ -139,34 +139,34 @@ class InlineTest(TestBase):
@add_test_categories(["dsym"])
def __test_with_dsym(self):
self.using_dsym = True
- self.debug_info = "dsym"
self.BuildMakefile()
self.build()
self.do_test()
+ __test_with_dsym.debug_info = "dsym"
@add_test_categories(["dwarf"])
def __test_with_dwarf(self):
self.using_dsym = False
- self.debug_info = "dwarf"
self.BuildMakefile()
self.build()
self.do_test()
+ __test_with_dwarf.debug_info = "dwarf"
@add_test_categories(["dwo"])
def __test_with_dwo(self):
self.using_dsym = False
- self.debug_info = "dwo"
self.BuildMakefile()
self.build()
self.do_test()
+ __test_with_dwo.debug_info = "dwo"
@add_test_categories(["gmodules"])
def __test_with_gmodules(self):
self.using_dsym = False
- self.debug_info = "gmodules"
self.BuildMakefile()
self.build()
self.do_test()
+ __test_with_gmodules.debug_info = "gmodules"
def execute_user_command(self, __command):
exec(__command, globals(), locals())
OpenPOWER on IntegriCloud