diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-12-13 12:24:23 +0100 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-12-13 12:34:49 +0100 |
commit | 9bace26a690a778ec0f09a9aae9537dfbdb6f42f (patch) | |
tree | 4164aae25028a4490b310022d51a2ad36746079c /lldb/packages/Python/lldbsuite/test/lang/c | |
parent | 3ca771ba594fbd40da7ef842c04b5842e7b2a83c (diff) | |
download | bcm5719-llvm-9bace26a690a778ec0f09a9aae9537dfbdb6f42f.tar.gz bcm5719-llvm-9bace26a690a778ec0f09a9aae9537dfbdb6f42f.zip |
[lldb][NFC] Remove all `setUp` overrides that only call the parent implementation
Summary:
A lot of our tests copied the setUp code from our TestSampleTest.py:
```
def setUp(self):
# Call super's setUp().
TestBase.setUp(self)
```
This code does nothing unless we actually do any setUp work in there, so let's remove all these method definitions.
Reviewers: labath, JDevlieghere
Reviewed By: labath
Subscribers: lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D71454
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/c')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lang/c/find_struct_type/TestFindStructTypes.py | 4 | ||||
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lang/c/local_types/TestUseClosestType.py | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lang/c/find_struct_type/TestFindStructTypes.py b/lldb/packages/Python/lldbsuite/test/lang/c/find_struct_type/TestFindStructTypes.py index 6e69c3e1d25..90d8530ff71 100644 --- a/lldb/packages/Python/lldbsuite/test/lang/c/find_struct_type/TestFindStructTypes.py +++ b/lldb/packages/Python/lldbsuite/test/lang/c/find_struct_type/TestFindStructTypes.py @@ -23,10 +23,6 @@ class TestFindTypesOnStructType(TestBase): self.build() self.do_test() - def setUp(self): - # Call super's setUp(). - TestBase.setUp(self) - def do_test(self): """Make sure FindTypes actually finds 'struct typename' not just 'typename'.""" exe = self.getBuildArtifact("a.out") diff --git a/lldb/packages/Python/lldbsuite/test/lang/c/local_types/TestUseClosestType.py b/lldb/packages/Python/lldbsuite/test/lang/c/local_types/TestUseClosestType.py index e40c3163c05..2b8307ace0f 100644 --- a/lldb/packages/Python/lldbsuite/test/lang/c/local_types/TestUseClosestType.py +++ b/lldb/packages/Python/lldbsuite/test/lang/c/local_types/TestUseClosestType.py @@ -26,10 +26,6 @@ class TestUseClosestType(TestBase): self.main_source_file = lldb.SBFileSpec("main.c") self.expr_test() - def setUp(self): - # Call super's setUp(). - TestBase.setUp(self) - def run_and_check_expr(self, num_children, child_type): frame = self.thread.GetFrameAtIndex(0) result = frame.EvaluateExpression("struct Foo *$mine = (struct Foo *) malloc(sizeof(struct Foo)); $mine") |