llvm-project/lldb/packages/Python/lldbsuite
Jonas Devlieghere 0f821339da
[lldb] Add assertStopReason helper function
Add a function to make it easier to debug a test failure caused by an
unexpected stop reason. This is similar to the assertState helper that
was added in ce825e4674.

Before:

  self.assertEqual(stop_reason, lldb.eStopReasonInstrumentation)
  AssertionError: 5 != 10

After:

  self.assertStopReason(stop_reason, lldb.eStopReasonInstrumentation)
  AssertionError: signal (5) != instrumentation (10)

Differential revision: https://reviews.llvm.org/D131083
2022-08-03 11:44:13 -07:00
..
support [LLDB] Update inspect getargspec to getfullargspec 2022-04-21 01:33:26 +05:00
test [lldb] Add assertStopReason helper function 2022-08-03 11:44:13 -07:00
test_event [lldb/test] Replace shlex.join with shlex.quote 2021-10-29 13:42:06 +02:00
__init__.py [lldb/test] Use realpath consistently for test root file paths. 2020-08-05 11:35:37 -07:00