[Lldb-commits] [lldb] 9385a6d - Add some diagnostics to diagnose bot-only failures for TestIgnoredExceptions.py

Jim Ingham via lldb-commits lldb-commits at lists.llvm.org
Fri May 20 11:38:49 PDT 2022


Author: Jim Ingham
Date: 2022-05-20T11:38:37-07:00
New Revision: 9385a6d6eaa3f4caebdee2eb53b5bf4ca1f1b832

URL: https://github.com/llvm/llvm-project/commit/9385a6d6eaa3f4caebdee2eb53b5bf4ca1f1b832
DIFF: https://github.com/llvm/llvm-project/commit/9385a6d6eaa3f4caebdee2eb53b5bf4ca1f1b832.diff

LOG: Add some diagnostics to diagnose bot-only failures for TestIgnoredExceptions.py

The test for commit bff4673b41781ec5bff6b96b52cf321d2271726c is failing on the
GreenDragon bot but none of us can repro the failure locally.  Adding some logging
to the test failure to help diagnose the issue.

Added: 
    

Modified: 
    lldb/test/API/macosx/ignore_exceptions/TestIgnoredExceptions.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/macosx/ignore_exceptions/TestIgnoredExceptions.py b/lldb/test/API/macosx/ignore_exceptions/TestIgnoredExceptions.py
index 378ce7a7b6b01..288602199e2e4 100644
--- a/lldb/test/API/macosx/ignore_exceptions/TestIgnoredExceptions.py
+++ b/lldb/test/API/macosx/ignore_exceptions/TestIgnoredExceptions.py
@@ -42,6 +42,11 @@ def suspended_thread_test(self):
         # Now continue, and we should stop with a stop reason of SIGBUS:
         process.Continue()
         self.assertEqual(process.state, lldb.eStateStopped, "Stopped after continue to SIGBUS")
+        if thread.stop_reason == lldb.eStopReasonBreakpoint:
+            id = thread.GetStopReasonDataAtIndex(0)
+            name = thread.frame[0].name
+            self.fail("Hit breakpoint {0} in '{1}' rather than getting a SIGBUS".format(id, name))
+
         self.assertEqual(thread.stop_reason, lldb.eStopReasonSignal)
         self.assertEqual(thread.GetStopReasonDataAtIndex(0), 10, "Got a SIGBUS")
 


        


More information about the lldb-commits mailing list