Files
Jonas Devlieghere 820f440274 [lldb] Correct style of error messages (#156774)
The LLVM Style Guide says the following about error and warning messages
[1]:

> [T]o match error message styles commonly produced by other tools,
> start the first sentence with a lowercase letter, and finish the last
> sentence without a period, if it would end in one otherwise.

I often provide this feedback during code review, but we still have a
bunch of places where we have inconsistent error message, which bothers
me as a user. This PR identifies a handful of those places and updates
the messages to be consistent.

[1] https://llvm.org/docs/CodingStandards.html#error-and-warning-messages
2025-09-04 16:37:41 -07:00

31 lines
750 B
Python

"""
Test multiword commands ('platform' in this case).
"""
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
class MultiwordCommandsTestCase(TestBase):
@no_debug_info_test
def test_ambiguous_subcommand(self):
self.expect(
"platform s",
error=True,
substrs=[
"ambiguous command 'platform s'. Possible completions:",
"\tselect\n",
"\tsettings\n",
"\tshell\n",
],
)
@no_debug_info_test
def test_empty_subcommand(self):
self.expect(
'platform ""',
error=True,
substrs=["need to specify a non-empty subcommand"],
)