File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
test/API/tools/lldb-dap/progress Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ class ProgressEventData : public EventData {
4444 uint64_t GetCompleted () const { return m_completed; }
4545 uint64_t GetTotal () const { return m_total; }
4646 std::string GetMessage () const {
47+ // Only put the title in the message of the progress create event.
4748 if (m_completed == 0 ) {
4849 std::string message = m_title;
4950 if (!m_details.empty ()) {
Original file line number Diff line number Diff line change @@ -41,8 +41,13 @@ def test_output(self):
4141 for event in self .dap_server .progress_events :
4242 event_type = event ["event" ]
4343 if "progressStart" in event_type :
44+ title = event ["body" ]["title" ]
45+ self .assertIn ("Progress tester" , title )
4446 start_found = True
4547 if "progressUpdate" in event_type :
48+ message = event ["body" ]["message" ]
49+ print (f"Progress update: { message } " )
50+ self .assertNotIn ("Progres tester" , message )
4651 update_found = True
4752
4853 self .assertTrue (start_found )
You can’t perform that action at this time.
0 commit comments