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/functionalities/breakpoint | |
| 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/functionalities/breakpoint')
5 files changed, 0 insertions, 21 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/address_breakpoints/TestAddressBreakpoints.py b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/address_breakpoints/TestAddressBreakpoints.py index 58a722f468f..6b42b51d16a 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/address_breakpoints/TestAddressBreakpoints.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/address_breakpoints/TestAddressBreakpoints.py @@ -20,10 +20,6 @@ class AddressBreakpointTestCase(TestBase): self.build() self.address_breakpoints() - def setUp(self): - # Call super's setUp(). - TestBase.setUp(self) - def address_breakpoints(self): """Test address breakpoints set with shared library of SBAddress work correctly.""" exe = self.getBuildArtifact("a.out") diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/address_breakpoints/TestBadAddressBreakpoints.py b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/address_breakpoints/TestBadAddressBreakpoints.py index c3088669c16..6d468e0fd64 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/address_breakpoints/TestBadAddressBreakpoints.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/address_breakpoints/TestBadAddressBreakpoints.py @@ -20,10 +20,6 @@ class BadAddressBreakpointTestCase(TestBase): self.build() self.address_breakpoints() - def setUp(self): - # Call super's setUp(). - TestBase.setUp(self) - def address_breakpoints(self): """Test that breakpoints set on a bad address say they are bad.""" target, process, thread, bkpt = \ diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/auto_continue/TestBreakpointAutoContinue.py b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/auto_continue/TestBreakpointAutoContinue.py index 79289da6c4e..e0b727e9734 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/auto_continue/TestBreakpointAutoContinue.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/auto_continue/TestBreakpointAutoContinue.py @@ -57,10 +57,6 @@ class BreakpointAutoContinue(TestBase): return process - def setUp(self): - # Call super's setUp(). - TestBase.setUp(self) - def simple_auto_continue(self): bpno = self.make_target_and_bkpt() process = self.launch_it(lldb.eStateExited) diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_language/TestBreakpointLanguage.py b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_language/TestBreakpointLanguage.py index e9949b86435..ceffb11f8b7 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_language/TestBreakpointLanguage.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_language/TestBreakpointLanguage.py @@ -14,11 +14,6 @@ class TestBreakpointLanguage(TestBase): mydir = TestBase.compute_mydir(__file__) - def setUp(self): - # Call super's setUp(). - TestBase.setUp(self) - # Find the line number to break inside main(). - def check_location_file(self, bp, loc, test_name): bp_loc = bp.GetLocationAtIndex(loc) addr = bp_loc.GetAddress() diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/scripted_bkpt/TestScriptedResolver.py b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/scripted_bkpt/TestScriptedResolver.py index ee84c95832e..895f4fa1e37 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/scripted_bkpt/TestScriptedResolver.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/scripted_bkpt/TestScriptedResolver.py @@ -40,10 +40,6 @@ class TestScriptedResolver(TestBase): self.build() self.do_test_bad_options() - def setUp(self): - # Call super's setUp(). - TestBase.setUp(self) - def make_target_and_import(self): target = lldbutil.run_to_breakpoint_make_target(self) interp = self.dbg.GetCommandInterpreter() |

