SBBreakpointLocation exposed the ignore count, but didn't expose
the hit count. Both values were exposed by SBBreakpoint and
SBWatchpoint, so this makes things a bit more consistent.
Details
Diff Detail
- Build Status
Buildable 8393 Build 8393: arc lint + arc unit
Event Timeline
If you are exposing this, could you write a test to make sure it stays correct? I added a sample test that you can easily copy and modify in:
packages/Python/lldbsuite/test/sample_test
The TestSampleTest.py test makes the binary, loads it into lldb and runs to a breakpoint. So it should be trivial to just check the location and make sure it is correct. Maybe drive around a little more and make sure it updates...
The breakpoint tests go in functionalities/breakpoints. Don't forget to reset the "LEVEL" variable in the Makefile to track the test location.
Pavel, since Jim was okay with this before apart from it not having a test, want to take a quick look now? Thanks!
The test looks well written. I've added a couple of suggestions you can consider including.
packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_hit_count/TestBreakpointHitCount.py | ||
---|---|---|
16 | You may want to add NO_DEBUG_INFO_TESTCASE = True here to turn off magic test duplication. | |
106 | using assertEqual will give more meaningful error messages in case this ever breaks. |
You may want to add NO_DEBUG_INFO_TESTCASE = True here to turn off magic test duplication.