[Lldb-commits] [lldb] [lldb][progress] Add discrete boolean flag to progress reports (PR #69516)
Med Ismail Bennani via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 18 15:54:21 PDT 2023
================
@@ -37,5 +37,8 @@ def test_dwarf_symbol_loading_progress_report_structured_data(self):
event = lldbutil.fetch_next_event(self, self.listener, self.broadcaster)
progress_data = lldb.SBDebugger.GetProgressDataFromEvent(event)
- message = progress_data.GetValueForKey("message").GetStringValue(100)
- self.assertGreater(len(message), 0)
+ title = progress_data.GetValueForKey("title").GetStringValue(100)
+ self.assertGreater(len(title), 0)
+
+ is_discrete = progress_data.GetValueForKey("is_discrete")
+ self.assertTrue(is_discrete, "is_discrete should be true")
----------------
medismailben wrote:
Actually, you could check if the dictionary has the key `is_discrete` AND if its value is `true`.
https://github.com/llvm/llvm-project/pull/69516
More information about the lldb-commits
mailing list