This is an archive of the discontinued LLVM Phabricator instance.

Give a little more info when "run_to_x_breakpoint" fails
Needs ReviewPublic

Authored by jingham on Aug 2 2019, 5:08 PM.
This revision needs review, but all reviewers have resigned.

Details

Reviewers
kwk
Summary

We failure was a little bit terse. Say whether we exited, hit another breakpoint/crashed, etc.

Diff Detail

Repository
rLLDB LLDB

Event Timeline

jingham created this revision.Aug 2 2019, 5:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 2 2019, 5:08 PM
kwk requested changes to this revision.Aug 13 2019, 5:38 AM
kwk added a subscriber: kwk.
kwk added inline comments.
lldb/packages/Python/lldbsuite/test/lldbutil.py
789 ↗(On Diff #213146)

I think the order of the placeholders is wrong either in the format string or in the arguments. This should work:

test.fail("Stopped for another reason: Breakpoint: %d Signaled: %d Crashed: %d"%(len(bkpts), len(signaled), len(crashed)))
This revision now requires changes to proceed.Aug 13 2019, 5:38 AM
jingham updated this revision to Diff 214865.Aug 13 2019, 10:07 AM

Fixed the inverted call order.

Thanks for pointing that out.

kwk resigned from this revision.Aug 27 2019, 3:18 AM