Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@


class SimpleHWBreakpointTest(HardwareBreakpointTestBase):
def does_not_support_hw_breakpoints(self):
# FIXME: Use HardwareBreakpointTestBase.supports_hw_breakpoints
if super().supports_hw_breakpoints() is None:
return "Hardware breakpoints are unsupported"
return None

@skipTestIfFn(does_not_support_hw_breakpoints)
@skipTestIfFn(HardwareBreakpointTestBase.hw_breakpoints_unsupported)
def test(self):
"""Test SBBreakpoint::SetIsHardware"""
self.build()
Expand All @@ -35,16 +29,13 @@ def test(self):
# breakpoint will be marked as a hardware breakpoint.
self.assertTrue(break_on_me_bp.IsHardware())

if super().supports_hw_breakpoints():
self.assertSuccess(error)

# Continue to our Hardware breakpoint and verify that's the reason
# we're stopped.
process.Continue()
self.expect(
"thread list",
STOPPED_DUE_TO_BREAKPOINT,
substrs=["stopped", "stop reason = breakpoint"],
)
else:
self.assertFailure(error)
self.assertSuccess(error)

# Continue to our Hardware breakpoint and verify that's the reason
# we're stopped.
process.Continue()
self.expect(
"thread list",
STOPPED_DUE_TO_BREAKPOINT,
substrs=["stopped", "stop reason = breakpoint"],
)
Loading