[Lldb-commits] [lldb] r118711 - in /lldb/trunk/test: bitfields/TestBitfields.py lldbtest.py
Johnny Chen
johnny.chen at apple.com
Wed Nov 10 12:20:06 PST 2010
Author: johnny
Date: Wed Nov 10 14:20:06 2010
New Revision: 118711
URL: http://llvm.org/viewvc/llvm-project?rev=118711&view=rev
Log:
Add the actual stop reason to an assert message for bitfields_variable_python()
test method when asserting:
thread.GetStopReason() == lldb.eStopReasonBreakpoint
Modified:
lldb/trunk/test/bitfields/TestBitfields.py
lldb/trunk/test/lldbtest.py
Modified: lldb/trunk/test/bitfields/TestBitfields.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/bitfields/TestBitfields.py?rev=118711&r1=118710&r2=118711&view=diff
==============================================================================
--- lldb/trunk/test/bitfields/TestBitfields.py (original)
+++ lldb/trunk/test/bitfields/TestBitfields.py Wed Nov 10 14:20:06 2010
@@ -84,6 +84,8 @@
def bitfields_variable_python(self):
"""Use Python APIs to inspect a bitfields variable."""
+ from lldbutil import StopReasonString
+
exe = os.path.join(os.getcwd(), "a.out")
target = self.dbg.CreateTarget(exe)
@@ -102,7 +104,7 @@
# The stop reason of the thread should be breakpoint.
thread = target.GetProcess().GetThreadAtIndex(0)
self.assertTrue(thread.GetStopReason() == lldb.eStopReasonBreakpoint,
- STOPPED_DUE_TO_BREAKPOINT)
+ STOPPED_DUE_TO_BREAKPOINT_WITH_STOP_REASON_AS % StopReasonString(thread.GetStopReason()))
# The breakpoint should have a hit count of 1.
self.assertTrue(breakpoint.GetHitCount() == 1, BREAKPOINT_HIT_ONCE)
Modified: lldb/trunk/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbtest.py?rev=118711&r1=118710&r2=118711&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Wed Nov 10 14:20:06 2010
@@ -151,7 +151,9 @@
STEP_OUT_SUCCEEDED = "Thread step-out succeeded"
-STOPPED_DUE_TO_BREAKPOINT = "Process state is stopped due to breakpoint"
+STOPPED_DUE_TO_BREAKPOINT = "Process is stopped due to breakpoint"
+
+STOPPED_DUE_TO_BREAKPOINT_WITH_STOP_REASON_AS = "Process is stopped due to breakpoint (actual stop reason: '%s')"
STOPPED_DUE_TO_BREAKPOINT_CONDITION = "Stopped due to breakpoint condition"
More information about the lldb-commits
mailing list