Raphael Isemann 9bace26a69 [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
2019-12-13 12:34:49 +01:00

27 lines
907 B
Python

import lldb
from lldbsuite.test.lldbtest import *
from lldbsuite.test.decorators import *
class AproposTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
@no_debug_info_test
def test_apropos(self):
self.expect("apropos", error=True,
substrs=[' must be called with exactly one argument'])
self.expect("apropos a b", error=True,
substrs=[' must be called with exactly one argument'])
self.expect("apropos ''", error=True,
substrs=['\'\' is not a valid search word'])
@no_debug_info_test
def test_apropos_variable(self):
"""Test that 'apropos variable' prints the fully qualified command name"""
self.expect(
'apropos variable',
substrs=[
'frame variable',
'target variable',
'watchpoint set variable'])