1import lldb 2from lldbsuite.test.lldbtest import * 3from lldbsuite.test.decorators import * 4 5class AproposTestCase(TestBase): 6 7 mydir = TestBase.compute_mydir(__file__) 8 9 @no_debug_info_test 10 def test_apropos(self): 11 self.expect("apropos", error=True, 12 substrs=[' must be called with exactly one argument']) 13 self.expect("apropos a b", error=True, 14 substrs=[' must be called with exactly one argument']) 15 self.expect("apropos ''", error=True, 16 substrs=['\'\' is not a valid search word']) 17 18 @no_debug_info_test 19 def test_apropos_variable(self): 20 """Test that 'apropos variable' prints the fully qualified command name""" 21 self.expect( 22 'apropos variable', 23 substrs=[ 24 'frame variable', 25 'target variable', 26 'watchpoint set variable']) 27