Skip to content

Commit 55dc811

Browse files
committed
[lldb] Improve swift-healthcheck help message (NFC) (#4990)
rdar://93660209 (cherry-picked from commit de3ee07)
1 parent 50e3dd2 commit 55dc811

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

lldb/source/Commands/CommandObjectHealthcheck.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,13 @@ using namespace lldb_private;
2222

2323
CommandObjectHealthcheck::CommandObjectHealthcheck(
2424
CommandInterpreter &interpreter)
25-
: CommandObjectParsed(interpreter, "swift-healthcheck",
26-
"Show the LLDB debugger health check diagnostics.",
27-
"swift-healthcheck") {}
25+
: CommandObjectParsed(
26+
interpreter, "swift-healthcheck",
27+
"Provides logging related to the Swift expression evaluator, "
28+
"including Swift compiler diagnostics. This makes it easier to "
29+
"identify project misconfigurations that result in module import "
30+
"failures in the debugger. The command is meant to be run after a "
31+
"expression evaluator failure has occurred.") {}
2832

2933
bool CommandObjectHealthcheck::DoExecute(Args &args,
3034
CommandReturnObject &result) {

lldb/test/API/lang/swift/swift-healthcheck/TestSwiftHealthCheck.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class TestSwiftHealthCheck(TestBase):
1212

1313
@swiftTest
1414
@skipIfDarwinEmbedded
15-
def test(self):
15+
def test_run_healthcheck(self):
1616
"""Test that an underspecified triple is upgraded with a version number.
1717
"""
1818
self.build()
@@ -37,3 +37,9 @@ def test(self):
3737
break
3838
self.assertGreater(good, 1)
3939
self.assertEquals(bad, 0)
40+
41+
@swiftTest
42+
@skipIfDarwinEmbedded
43+
def test_help_healthcheck(self):
44+
self.expect("help swift-healthcheck",
45+
substrs=["logging related to the Swift expression evaluator"])

0 commit comments

Comments
 (0)