[all-commits] [llvm/llvm-project] 0f8213: [lldb] Add assertStopReason helper function
Jonas Devlieghere via All-commits
all-commits at lists.llvm.org
Wed Aug 3 11:44:27 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0f821339dad1bf45dd71a1cac32b6352ba251ecb
https://github.com/llvm/llvm-project/commit/0f821339dad1bf45dd71a1cac32b6352ba251ecb
Author: Jonas Devlieghere <jonas at devlieghere.com>
Date: 2022-08-03 (Wed, 03 Aug 2022)
Changed paths:
M lldb/docs/resources/test.rst
M lldb/packages/Python/lldbsuite/test/lldbtest.py
M lldb/packages/Python/lldbsuite/test/lldbutil.py
M lldb/test/API/commands/process/continue_to_bkpt/TestContinueToBkpts.py
M lldb/test/API/commands/watchpoints/multiple_hits/TestMultipleHits.py
M lldb/test/API/commands/watchpoints/step_over_watchpoint/TestStepOverWatchpoint.py
M lldb/test/API/commands/watchpoints/watchpoint_count/TestWatchpointCount.py
M lldb/test/API/commands/watchpoints/watchpoint_disable/TestWatchpointDisable.py
M lldb/test/API/functionalities/breakpoint/breakpoint_on_lambda_capture/TestBreakOnLambdaCapture.py
M lldb/test/API/functionalities/breakpoint/step_over_breakpoint/TestStepOverBreakpoint.py
M lldb/test/API/functionalities/breakpoint/two_hits_one_actual/TestTwoHitsOneActual.py
M lldb/test/API/functionalities/gdb_remote_client/TestRecognizeBreakpoint.py
M lldb/test/API/functionalities/mtc/simple/TestMTCSimple.py
M lldb/test/API/functionalities/postmortem/elf-core/gcore/TestGCore.py
M lldb/test/API/functionalities/postmortem/elf-core/thread_crash/TestLinuxCoreThreads.py
M lldb/test/API/functionalities/postmortem/minidump-new/TestMiniDumpNew.py
M lldb/test/API/functionalities/postmortem/minidump/TestMiniDump.py
M lldb/test/API/functionalities/postmortem/netbsd-core/TestNetBSDCore.py
M lldb/test/API/functionalities/postmortem/wow64_minidump/TestWow64MiniDump.py
M lldb/test/API/functionalities/process_group/TestChangeProcessGroup.py
M lldb/test/API/functionalities/return-value/TestReturnValue.py
M lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py
M lldb/test/API/functionalities/stop-on-sharedlibrary-load/TestStopOnSharedlibraryEvents.py
M lldb/test/API/functionalities/thread/create_during_step/TestCreateDuringStep.py
M lldb/test/API/functionalities/thread/num_threads/TestNumThreads.py
M lldb/test/API/functionalities/thread/state/TestThreadStates.py
M lldb/test/API/functionalities/thread/state_after_expression/TestStateAfterExpression.py
M lldb/test/API/functionalities/ubsan/basic/TestUbsanBasic.py
M lldb/test/API/lang/c/stepping/TestStepAndBreakpoints.py
M lldb/test/API/macosx/ignore_exceptions/TestIgnoredExceptions.py
M lldb/test/API/python_api/thread/TestThreadAPI.py
Log Message:
-----------
[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 ce825e46743b.
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
More information about the All-commits
mailing list