This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Add more asserts to TestExec
ClosedPublic

Authored by kastiglione on Apr 17 2023, 5:17 PM.

Details

Summary

If this test fails, the error message isn't helpful:

self.assertEqual(len(threads), 1,
AssertionError: 0 != 1 : Stopped at breakpoint in exec'ed process

This change adds asserts to verify that:

  1. The process is stopped
  2. For each thread, that the stop reason is None, or Breakpoint

The latter will indicate if execution has stopped for some other reason, and if so what
that reason is.

Diff Detail

Event Timeline

kastiglione created this revision.Apr 17 2023, 5:17 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 17 2023, 5:17 PM
kastiglione requested review of this revision.Apr 17 2023, 5:17 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 17 2023, 5:17 PM
This revision was not accepted when it landed; it landed in state Needs Review.Apr 17 2023, 6:43 PM
This revision was automatically updated to reflect the committed changes.