1""" 2Test multiword commands ('platform' in this case). 3""" 4 5import lldb 6from lldbsuite.test.decorators import * 7from lldbsuite.test.lldbtest import * 8 9 10class MultiwordCommandsTestCase(TestBase): 11 @no_debug_info_test 12 def test_ambiguous_subcommand(self): 13 self.expect( 14 "platform s", 15 error=True, 16 substrs=[ 17 "ambiguous command 'platform s'. Possible completions:", 18 "\tselect\n", 19 "\tsettings\n", 20 "\tshell\n", 21 ], 22 ) 23 24 @no_debug_info_test 25 def test_empty_subcommand(self): 26 self.expect( 27 'platform ""', 28 error=True, 29 substrs=["Need to specify a non-empty subcommand."], 30 ) 31