Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lldb/source/Commands/CommandObjectHealthcheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "lldb/Host/HostInfo.h"
#include "lldb/Interpreter/CommandReturnObject.h"
#include "lldb/Utility/Log.h"
#include "lldb/lldb-enumerations.h"
#include "lldb/lldb-private.h"

#include "Plugins/Language/Swift/LogChannelSwift.h"
Expand Down Expand Up @@ -55,6 +56,8 @@ void CommandObjectHealthcheck::DoExecute(Args &args,

result.AppendMessageWithFormat("Health check written to %s\n",
temp_path.c_str());
result.SetStatus(lldb::eReturnStatusSuccessFinishResult);

#if defined(__APPLE__)
// When in an interactive graphical session and not, for example,
// running LLDB running over ssh, open the log file straight away in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def test_run_healthcheck(self):
self, 'main')
self.expect("expression 1")
result = lldb.SBCommandReturnObject()
ret_val = self.dbg.GetCommandInterpreter().HandleCommand("swift-healthcheck", result)
ret_val = self.ci.HandleCommand("swift-healthcheck", result)
self.assertEqual(ret_val, lldb.eReturnStatusSuccessFinishResult)
log = result.GetOutput()[:-1].split(" ")[-1]
self.assertEqual(log[-4:], ".log")
import io, re
Expand Down