diff --git a/lldb/test/API/commands/register/register/register_command/TestRegisters.py b/lldb/test/API/commands/register/register/register_command/TestRegisters.py --- a/lldb/test/API/commands/register/register/register_command/TestRegisters.py +++ b/lldb/test/API/commands/register/register/register_command/TestRegisters.py @@ -221,8 +221,8 @@ self.assertTrue(matched, STOPPED_DUE_TO_SIGNAL) process = target.GetProcess() - self.assertEqual(process.GetState(), lldb.eStateStopped, - PROCESS_STOPPED) + self.assertState(process.GetState(), lldb.eStateStopped, + PROCESS_STOPPED) thread = process.GetThreadAtIndex(0) self.assertTrue(thread.IsValid(), "current thread is valid") diff --git a/lldb/test/API/commands/watchpoints/multiple_hits/TestMultipleHits.py b/lldb/test/API/commands/watchpoints/multiple_hits/TestMultipleHits.py --- a/lldb/test/API/commands/watchpoints/multiple_hits/TestMultipleHits.py +++ b/lldb/test/API/commands/watchpoints/multiple_hits/TestMultipleHits.py @@ -26,7 +26,7 @@ process = target.LaunchSimple(None, None, self.get_process_working_directory()) - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonBreakpoint) self.assertIsNotNone(thread) @@ -46,6 +46,6 @@ self.assertSuccess(error) process.Continue(); - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) self.assertEqual(thread.GetStopReason(), lldb.eStopReasonWatchpoint) diff --git a/lldb/test/API/functionalities/breakpoint/auto_continue/TestBreakpointAutoContinue.py b/lldb/test/API/functionalities/breakpoint/auto_continue/TestBreakpointAutoContinue.py --- a/lldb/test/API/functionalities/breakpoint/auto_continue/TestBreakpointAutoContinue.py +++ b/lldb/test/API/functionalities/breakpoint/auto_continue/TestBreakpointAutoContinue.py @@ -66,7 +66,7 @@ bpno = self.make_target_and_bkpt("-N BKPT -C 'break modify --auto-continue 0 BKPT'") process = self.launch_it(lldb.eStateStopped) state = process.GetState() - self.assertEqual(state, lldb.eStateStopped, "Process should be stopped") + self.assertState(state, lldb.eStateStopped, "Process should be stopped") bkpt = self.target.FindBreakpointByID(bpno) threads = lldbutil.get_threads_stopped_at_breakpoint(process, bkpt) self.assertEqual(len(threads), 1, "There was a thread stopped at our breakpoint") diff --git a/lldb/test/API/functionalities/breakpoint/debugbreak/TestDebugBreak.py b/lldb/test/API/functionalities/breakpoint/debugbreak/TestDebugBreak.py --- a/lldb/test/API/functionalities/breakpoint/debugbreak/TestDebugBreak.py +++ b/lldb/test/API/functionalities/breakpoint/debugbreak/TestDebugBreak.py @@ -26,7 +26,7 @@ None, None, self.get_process_working_directory()) # We've hit the first stop, so grab the frame. - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) stop_reason = lldb.eStopReasonException if (lldbplatformutil.getPlatform( ) == "windows" or lldbplatformutil.getPlatform() == "macosx") else lldb.eStopReasonSignal thread = lldbutil.get_stopped_thread(process, stop_reason) diff --git a/lldb/test/API/functionalities/conditional_break/TestConditionalBreak.py b/lldb/test/API/functionalities/conditional_break/TestConditionalBreak.py --- a/lldb/test/API/functionalities/conditional_break/TestConditionalBreak.py +++ b/lldb/test/API/functionalities/conditional_break/TestConditionalBreak.py @@ -48,8 +48,8 @@ self.assertTrue(process, PROCESS_IS_VALID) # The stop reason of the thread should be breakpoint. - self.assertEqual(process.GetState(), lldb.eStateStopped, - STOPPED_DUE_TO_BREAKPOINT) + self.assertState(process.GetState(), lldb.eStateStopped, + STOPPED_DUE_TO_BREAKPOINT) # Find the line number where a's parent frame function is c. line = line_number( diff --git a/lldb/test/API/functionalities/dyld-exec-linux/TestDyldExecLinux.py b/lldb/test/API/functionalities/dyld-exec-linux/TestDyldExecLinux.py --- a/lldb/test/API/functionalities/dyld-exec-linux/TestDyldExecLinux.py +++ b/lldb/test/API/functionalities/dyld-exec-linux/TestDyldExecLinux.py @@ -56,6 +56,6 @@ process.Continue(); # Stopped on main here. - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) thread = process.GetSelectedThread() self.assertIn("main", thread.GetFrameAtIndex(0).GetDisplayFunctionName()) diff --git a/lldb/test/API/functionalities/dyld-launch-linux/TestDyldLaunchLinux.py b/lldb/test/API/functionalities/dyld-launch-linux/TestDyldLaunchLinux.py --- a/lldb/test/API/functionalities/dyld-launch-linux/TestDyldLaunchLinux.py +++ b/lldb/test/API/functionalities/dyld-launch-linux/TestDyldLaunchLinux.py @@ -43,17 +43,17 @@ self.assertSuccess(error) # Stopped on main here. - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) thread = process.GetSelectedThread() self.assertIn("main", thread.GetFrameAtIndex(0).GetDisplayFunctionName()) process.Continue() # Stopped on get_signal_crash function here. - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) self.assertIn("get_signal_crash", thread.GetFrameAtIndex(0).GetDisplayFunctionName()) process.Continue() # Stopped because of generated signal. - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) self.assertIn("raise", thread.GetFrameAtIndex(0).GetDisplayFunctionName()) self.assertIn("get_signal_crash", thread.GetFrameAtIndex(1).GetDisplayFunctionName()) diff --git a/lldb/test/API/functionalities/exec/TestExec.py b/lldb/test/API/functionalities/exec/TestExec.py --- a/lldb/test/API/functionalities/exec/TestExec.py +++ b/lldb/test/API/functionalities/exec/TestExec.py @@ -69,8 +69,8 @@ self.addTearDownHook(cleanup) # The stop reason of the thread should be breakpoint. - self.assertEqual(process.GetState(), lldb.eStateStopped, - STOPPED_DUE_TO_BREAKPOINT) + self.assertState(process.GetState(), lldb.eStateStopped, + STOPPED_DUE_TO_BREAKPOINT) threads = lldbutil.get_threads_stopped_at_breakpoint( process, breakpoint1) @@ -94,7 +94,7 @@ if not skip_exec: self.assertNotEqual(process.GetState(), lldb.eStateExited, "Process should not have exited!") - self.assertEqual(process.GetState(), lldb.eStateStopped, + self.assertState(process.GetState(), lldb.eStateStopped, "Process should be stopped at __dyld_start") threads = lldbutil.get_stopped_threads( @@ -137,8 +137,8 @@ self, 'Set breakpoint 1 here', lldb.SBFileSpec('main.cpp', False)) # The stop reason of the thread should be breakpoint. - self.assertEqual(process.GetState(), lldb.eStateStopped, - STOPPED_DUE_TO_BREAKPOINT) + self.assertState(process.GetState(), lldb.eStateStopped, + STOPPED_DUE_TO_BREAKPOINT) threads = lldbutil.get_threads_stopped_at_breakpoint(process, breakpoint1) self.assertEqual(len(threads), 1) @@ -164,7 +164,7 @@ self.assertNotEqual(process.GetState(), lldb.eStateExited, "Process should not have exited!") - self.assertEqual(process.GetState(), lldb.eStateStopped, + self.assertState(process.GetState(), lldb.eStateStopped, "Process should be stopped at __dyld_start") threads = lldbutil.get_stopped_threads( diff --git a/lldb/test/API/functionalities/gdb_remote_client/TestNoLocalFile.py b/lldb/test/API/functionalities/gdb_remote_client/TestNoLocalFile.py --- a/lldb/test/API/functionalities/gdb_remote_client/TestNoLocalFile.py +++ b/lldb/test/API/functionalities/gdb_remote_client/TestNoLocalFile.py @@ -101,6 +101,6 @@ process = target.Launch(launch_info, error) self.assertSuccess(error, "Successfully launched.") - self.assertEqual(process.GetState(), lldb.eStateStopped, "Should be stopped at entry") + self.assertState(process.GetState(), lldb.eStateStopped, "Should be stopped at entry") self.assertIsNotNone(self.a_packet_file, "A packet was sent") self.assertEqual(self.absent_file, self.a_packet_file, "The A packet file was correct") diff --git a/lldb/test/API/functionalities/gdb_remote_client/TestRestartBug.py b/lldb/test/API/functionalities/gdb_remote_client/TestRestartBug.py --- a/lldb/test/API/functionalities/gdb_remote_client/TestRestartBug.py +++ b/lldb/test/API/functionalities/gdb_remote_client/TestRestartBug.py @@ -62,4 +62,4 @@ # auto-continue after setting the breakpoint. self.assertEqual(self.server.responder.continueCount, 1) # And the process should end up in the stopped state. - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) diff --git a/lldb/test/API/functionalities/postmortem/minidump/TestMiniDump.py b/lldb/test/API/functionalities/postmortem/minidump/TestMiniDump.py --- a/lldb/test/API/functionalities/postmortem/minidump/TestMiniDump.py +++ b/lldb/test/API/functionalities/postmortem/minidump/TestMiniDump.py @@ -120,7 +120,7 @@ breakpoint = target.BreakpointCreateByName("bar") process = target.LaunchSimple( None, None, self.get_process_working_directory()) - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) self.assertTrue(process.SaveCore(core)) self.assertTrue(os.path.isfile(core)) self.assertSuccess(process.Kill()) @@ -156,7 +156,7 @@ breakpoint = target.BreakpointCreateByName("bar") process = target.LaunchSimple( None, None, self.get_process_working_directory()) - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) self.assertTrue(process.SaveCore(core)) self.assertTrue(os.path.isfile(core)) self.assertSuccess(process.Kill()) diff --git a/lldb/test/API/functionalities/process_save_core/TestProcessSaveCore.py b/lldb/test/API/functionalities/process_save_core/TestProcessSaveCore.py --- a/lldb/test/API/functionalities/process_save_core/TestProcessSaveCore.py +++ b/lldb/test/API/functionalities/process_save_core/TestProcessSaveCore.py @@ -40,7 +40,7 @@ breakpoint = target.BreakpointCreateByName("bar") process = target.LaunchSimple( None, None, self.get_process_working_directory()) - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) self.assertTrue(process.SaveCore(core)) self.assertTrue(os.path.isfile(core)) self.assertSuccess(process.Kill()) @@ -74,7 +74,7 @@ breakpoint = target.BreakpointCreateByName("bar") process = target.LaunchSimple( None, None, self.get_process_working_directory()) - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) self.assertTrue(process.SaveCore(core)) self.assertTrue(os.path.isfile(core)) self.assertSuccess(process.Kill()) diff --git a/lldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidump.py b/lldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidump.py --- a/lldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidump.py +++ b/lldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidump.py @@ -26,7 +26,7 @@ target = self.dbg.CreateTarget(exe) process = target.LaunchSimple( None, None, self.get_process_working_directory()) - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) # get neccessary data for the verification phase process_info = process.GetProcessInfo() diff --git a/lldb/test/API/functionalities/signal/handle-abrt/TestHandleAbort.py b/lldb/test/API/functionalities/signal/handle-abrt/TestHandleAbort.py --- a/lldb/test/API/functionalities/signal/handle-abrt/TestHandleAbort.py +++ b/lldb/test/API/functionalities/signal/handle-abrt/TestHandleAbort.py @@ -32,7 +32,7 @@ process = target.LaunchSimple( None, None, self.get_process_working_directory()) self.assertTrue(process, PROCESS_IS_VALID) - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) signo = process.GetUnixSignals().GetSignalNumberFromName("SIGABRT") thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonSignal) diff --git a/lldb/test/API/functionalities/signal/handle-segv/TestHandleSegv.py b/lldb/test/API/functionalities/signal/handle-segv/TestHandleSegv.py --- a/lldb/test/API/functionalities/signal/handle-segv/TestHandleSegv.py +++ b/lldb/test/API/functionalities/signal/handle-segv/TestHandleSegv.py @@ -28,7 +28,7 @@ process = target.LaunchSimple( None, None, self.get_process_working_directory()) self.assertTrue(process, PROCESS_IS_VALID) - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) signo = process.GetUnixSignals().GetSignalNumberFromName("SIGSEGV") thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonSignal) diff --git a/lldb/test/API/functionalities/signal/raise/TestRaise.py b/lldb/test/API/functionalities/signal/raise/TestRaise.py --- a/lldb/test/API/functionalities/signal/raise/TestRaise.py +++ b/lldb/test/API/functionalities/signal/raise/TestRaise.py @@ -43,7 +43,7 @@ process = target.LaunchSimple( [signal], None, self.get_process_working_directory()) self.assertTrue(process, PROCESS_IS_VALID) - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) thread = lldbutil.get_stopped_thread( process, lldb.eStopReasonBreakpoint) self.assertTrue( @@ -82,7 +82,7 @@ # Make sure we stop at the signal lldbutil.set_actions_for_signal(self, signal, "false", "true", "true") process.Continue() - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonSignal) self.assertTrue( thread.IsValid(), @@ -135,7 +135,7 @@ # Make sure we stop at the signal lldbutil.set_actions_for_signal(self, signal, "true", "true", "true") process.Continue() - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonSignal) self.assertTrue( thread.IsValid(), diff --git a/lldb/test/API/functionalities/step-vrs-interrupt/TestStepVrsInterruptTimeout.py b/lldb/test/API/functionalities/step-vrs-interrupt/TestStepVrsInterruptTimeout.py --- a/lldb/test/API/functionalities/step-vrs-interrupt/TestStepVrsInterruptTimeout.py +++ b/lldb/test/API/functionalities/step-vrs-interrupt/TestStepVrsInterruptTimeout.py @@ -33,4 +33,4 @@ self.dbg.SetAsync(False) self.runCmd("settings set target.process.interrupt-timeout 1") thread.StepOver() - self.assertEqual(process.GetState(), lldb.eStateStopped, "Stopped like we should") + self.assertState(process.GetState(), lldb.eStateStopped, "Stopped like we should") diff --git a/lldb/test/API/functionalities/step_scripted/TestStepScripted.py b/lldb/test/API/functionalities/step_scripted/TestStepScripted.py --- a/lldb/test/API/functionalities/step_scripted/TestStepScripted.py +++ b/lldb/test/API/functionalities/step_scripted/TestStepScripted.py @@ -100,7 +100,7 @@ self.assertSuccess(err) # We should not have exited: - self.assertEqual(process.GetState(), lldb.eStateStopped, "We are stopped") + self.assertState(process.GetState(), lldb.eStateStopped, "We are stopped") # We should still be in foo: self.assertEqual("foo", frame.GetFunctionName()) diff --git a/lldb/test/API/functionalities/stop-on-sharedlibrary-load/TestStopOnSharedlibraryEvents.py b/lldb/test/API/functionalities/stop-on-sharedlibrary-load/TestStopOnSharedlibraryEvents.py --- a/lldb/test/API/functionalities/stop-on-sharedlibrary-load/TestStopOnSharedlibraryEvents.py +++ b/lldb/test/API/functionalities/stop-on-sharedlibrary-load/TestStopOnSharedlibraryEvents.py @@ -58,7 +58,7 @@ self.assertGreater(backstop_bkpt_1.GetNumLocations(), 0, "Set our second breakpoint") process.Continue() - self.assertEqual(process.GetState(), lldb.eStateStopped, "We didn't stop for the load") + self.assertState(process.GetState(), lldb.eStateStopped, "We didn't stop for the load") self.assertEqual(backstop_bkpt_1.GetHitCount(), 0, "Hit our backstop breakpoint") # We should be stopped after the library is loaded, check that: @@ -82,14 +82,14 @@ if bkpt_modifier == None: process.Continue() - self.assertEqual(process.GetState(), lldb.eStateStopped, "We didn't stop for the load") + self.assertState(process.GetState(), lldb.eStateStopped, "We didn't stop for the load") self.assertEqual(backstop_bkpt_2.GetHitCount(), 0, "Hit our backstop breakpoint") self.assertEqual(thread.stop_reason, lldb.eStopReasonBreakpoint, "We attributed the stop to the breakpoint") self.assertEqual(load_bkpt.GetHitCount(), 1, "We hit our breakpoint at the load address") else: bkpt_modifier(load_bkpt) process.Continue() - self.assertEqual(process.GetState(), lldb.eStateStopped, "We didn't stop") + self.assertState(process.GetState(), lldb.eStateStopped, "We didn't stop") self.assertTrue(thread.IsValid(), "Our thread was no longer valid.") self.assertEqual(thread.stop_reason, lldb.eStopReasonBreakpoint, "We didn't hit some breakpoint") self.assertEqual(backstop_bkpt_2.GetHitCount(), 1, "We continued to the right breakpoint") diff --git a/lldb/test/API/lang/c/step_over_no_deadlock/TestStepOverDoesntBlock.py b/lldb/test/API/lang/c/step_over_no_deadlock/TestStepOverDoesntBlock.py --- a/lldb/test/API/lang/c/step_over_no_deadlock/TestStepOverDoesntBlock.py +++ b/lldb/test/API/lang/c/step_over_no_deadlock/TestStepOverDoesntBlock.py @@ -27,4 +27,4 @@ thread.StepOver() state = process.GetState() - self.assertEqual(state, lldb.eStateStopped) + self.assertState(state, lldb.eStateStopped) diff --git a/lldb/test/API/lang/cpp/dynamic-value/TestCppValueCast.py b/lldb/test/API/lang/cpp/dynamic-value/TestCppValueCast.py --- a/lldb/test/API/lang/cpp/dynamic-value/TestCppValueCast.py +++ b/lldb/test/API/lang/cpp/dynamic-value/TestCppValueCast.py @@ -63,8 +63,8 @@ process = target.LaunchSimple( None, None, self.get_process_working_directory()) - self.assertEqual(process.GetState(), lldb.eStateStopped, - PROCESS_STOPPED) + self.assertState(process.GetState(), lldb.eStateStopped, + PROCESS_STOPPED) # Find DerivedA and DerivedB types. typeA = target.FindFirstType('DerivedA') diff --git a/lldb/test/API/lang/objc/objc-checker/TestObjCCheckers.py b/lldb/test/API/lang/objc/objc-checker/TestObjCCheckers.py --- a/lldb/test/API/lang/objc/objc-checker/TestObjCCheckers.py +++ b/lldb/test/API/lang/objc/objc-checker/TestObjCCheckers.py @@ -49,8 +49,8 @@ process = target.LaunchSimple( None, None, self.get_process_working_directory()) - self.assertEqual(process.GetState(), lldb.eStateStopped, - PROCESS_STOPPED) + self.assertState(process.GetState(), lldb.eStateStopped, + PROCESS_STOPPED) threads = lldbutil.get_threads_stopped_at_breakpoint( process, main_bkpt) diff --git a/lldb/test/API/linux/aarch64/unwind_signal/TestUnwindSignal.py b/lldb/test/API/linux/aarch64/unwind_signal/TestUnwindSignal.py --- a/lldb/test/API/linux/aarch64/unwind_signal/TestUnwindSignal.py +++ b/lldb/test/API/linux/aarch64/unwind_signal/TestUnwindSignal.py @@ -29,7 +29,7 @@ process = target.LaunchSimple( None, None, self.get_process_working_directory()) self.assertTrue(process, PROCESS_IS_VALID) - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) signo = process.GetUnixSignals().GetSignalNumberFromName("SIGILL") thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonSignal) diff --git a/lldb/test/API/macosx/ignore_exceptions/TestIgnoredExceptions.py b/lldb/test/API/macosx/ignore_exceptions/TestIgnoredExceptions.py --- a/lldb/test/API/macosx/ignore_exceptions/TestIgnoredExceptions.py +++ b/lldb/test/API/macosx/ignore_exceptions/TestIgnoredExceptions.py @@ -41,7 +41,7 @@ self.assertEqual(return_bkpt.GetNumLocations(), 1, "Found return breakpoint") # Now continue, and we should stop with a stop reason of SIGBUS: process.Continue() - self.assertEqual(process.state, lldb.eStateStopped, "Stopped after continue to SIGBUS") + self.assertState(process.state, lldb.eStateStopped, "Stopped after continue to SIGBUS") if thread.stop_reason == lldb.eStopReasonBreakpoint: id = thread.GetStopReasonDataAtIndex(0) name = thread.frame[0].name diff --git a/lldb/test/API/python_api/frame/TestFrames.py b/lldb/test/API/python_api/frame/TestFrames.py --- a/lldb/test/API/python_api/frame/TestFrames.py +++ b/lldb/test/API/python_api/frame/TestFrames.py @@ -37,8 +37,8 @@ None, None, self.get_process_working_directory()) process = target.GetProcess() - self.assertEqual(process.GetState(), lldb.eStateStopped, - PROCESS_STOPPED) + self.assertState(process.GetState(), lldb.eStateStopped, + PROCESS_STOPPED) # Keeps track of the number of times 'a' is called where it is within a # depth of 3 of the 'c' leaf function. @@ -140,8 +140,8 @@ None, None, self.get_process_working_directory()) process = target.GetProcess() - self.assertEqual(process.GetState(), lldb.eStateStopped, - PROCESS_STOPPED) + self.assertState(process.GetState(), lldb.eStateStopped, + PROCESS_STOPPED) thread = lldbutil.get_stopped_thread( process, lldb.eStopReasonBreakpoint) @@ -181,8 +181,8 @@ None, None, self.get_process_working_directory()) process = target.GetProcess() - self.assertEqual(process.GetState(), lldb.eStateStopped, - PROCESS_STOPPED) + self.assertState(process.GetState(), lldb.eStateStopped, + PROCESS_STOPPED) thread = lldbutil.get_stopped_thread( process, lldb.eStopReasonBreakpoint) diff --git a/lldb/test/API/python_api/frame/inlines/TestInlinedFrame.py b/lldb/test/API/python_api/frame/inlines/TestInlinedFrame.py --- a/lldb/test/API/python_api/frame/inlines/TestInlinedFrame.py +++ b/lldb/test/API/python_api/frame/inlines/TestInlinedFrame.py @@ -46,8 +46,8 @@ None, None, self.get_process_working_directory()) process = target.GetProcess() - self.assertEqual(process.GetState(), lldb.eStateStopped, - PROCESS_STOPPED) + self.assertState(process.GetState(), lldb.eStateStopped, + PROCESS_STOPPED) import lldbsuite.test.lldbutil as lldbutil stack_traces1 = lldbutil.print_stacktraces(process, string_buffer=True) @@ -78,8 +78,8 @@ # Expect to break again for the second time. process.Continue() - self.assertEqual(process.GetState(), lldb.eStateStopped, - PROCESS_STOPPED) + self.assertState(process.GetState(), lldb.eStateStopped, + PROCESS_STOPPED) stack_traces2 = lldbutil.print_stacktraces( process, string_buffer=True) if self.TraceOn(): diff --git a/lldb/test/API/python_api/function_symbol/TestDisasmAPI.py b/lldb/test/API/python_api/function_symbol/TestDisasmAPI.py --- a/lldb/test/API/python_api/function_symbol/TestDisasmAPI.py +++ b/lldb/test/API/python_api/function_symbol/TestDisasmAPI.py @@ -52,7 +52,7 @@ self.assertTrue(process, PROCESS_IS_VALID) # Frame #0 should be on self.line1. - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) thread = lldbutil.get_stopped_thread( process, lldb.eStopReasonBreakpoint) self.assertTrue( @@ -75,7 +75,7 @@ # Continue the inferior, the breakpoint 2 should be hit. process.Continue() - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) thread = lldbutil.get_stopped_thread( process, lldb.eStopReasonBreakpoint) self.assertTrue( diff --git a/lldb/test/API/python_api/function_symbol/TestSymbolAPI.py b/lldb/test/API/python_api/function_symbol/TestSymbolAPI.py --- a/lldb/test/API/python_api/function_symbol/TestSymbolAPI.py +++ b/lldb/test/API/python_api/function_symbol/TestSymbolAPI.py @@ -52,7 +52,7 @@ self.assertTrue(process, PROCESS_IS_VALID) # Frame #0 should be on self.line1. - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) thread = lldbutil.get_stopped_thread( process, lldb.eStopReasonBreakpoint) self.assertTrue( @@ -69,7 +69,7 @@ # Continue the inferior, the breakpoint 2 should be hit. process.Continue() - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) thread = lldbutil.get_stopped_thread( process, lldb.eStopReasonBreakpoint) self.assertTrue( diff --git a/lldb/test/API/python_api/lldbutil/frame/TestFrameUtils.py b/lldb/test/API/python_api/lldbutil/frame/TestFrameUtils.py --- a/lldb/test/API/python_api/lldbutil/frame/TestFrameUtils.py +++ b/lldb/test/API/python_api/lldbutil/frame/TestFrameUtils.py @@ -39,8 +39,8 @@ if not process: self.fail("SBTarget.LaunchProcess() failed") - self.assertEqual(process.GetState(), lldb.eStateStopped, - PROCESS_STOPPED) + self.assertState(process.GetState(), lldb.eStateStopped, + PROCESS_STOPPED) import lldbsuite.test.lldbutil as lldbutil thread = lldbutil.get_stopped_thread( diff --git a/lldb/test/API/python_api/target/TestTargetAPI.py b/lldb/test/API/python_api/target/TestTargetAPI.py --- a/lldb/test/API/python_api/target/TestTargetAPI.py +++ b/lldb/test/API/python_api/target/TestTargetAPI.py @@ -428,7 +428,7 @@ self.assertTrue(process, PROCESS_IS_VALID) # Frame #0 should be on self.line1. - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) thread = lldbutil.get_stopped_thread( process, lldb.eStopReasonBreakpoint) self.assertTrue( @@ -443,7 +443,7 @@ # Continue the inferior, the breakpoint 2 should be hit. process.Continue() - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) thread = lldbutil.get_stopped_thread( process, lldb.eStopReasonBreakpoint) self.assertTrue( diff --git a/lldb/test/API/python_api/thread/TestThreadAPI.py b/lldb/test/API/python_api/thread/TestThreadAPI.py --- a/lldb/test/API/python_api/thread/TestThreadAPI.py +++ b/lldb/test/API/python_api/thread/TestThreadAPI.py @@ -197,7 +197,7 @@ self.assertTrue(process, PROCESS_IS_VALID) # Frame #0 should be on self.step_out_of_malloc. - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) thread = get_stopped_thread(process, lldb.eStopReasonBreakpoint) self.assertTrue( thread.IsValid(), @@ -243,7 +243,7 @@ self.assertTrue(process, PROCESS_IS_VALID) # Frame #0 should be on self.step_out_of_malloc. - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) thread = get_stopped_thread(process, lldb.eStopReasonBreakpoint) self.assertTrue( thread.IsValid(), diff --git a/lldb/test/API/python_api/type/TestTypeList.py b/lldb/test/API/python_api/type/TestTypeList.py --- a/lldb/test/API/python_api/type/TestTypeList.py +++ b/lldb/test/API/python_api/type/TestTypeList.py @@ -46,7 +46,7 @@ self.assertTrue(process, PROCESS_IS_VALID) # Get Frame #0. - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) thread = lldbutil.get_stopped_thread( process, lldb.eStopReasonBreakpoint) self.assertTrue( diff --git a/lldb/test/API/python_api/value/TestValueAPI.py b/lldb/test/API/python_api/value/TestValueAPI.py --- a/lldb/test/API/python_api/value/TestValueAPI.py +++ b/lldb/test/API/python_api/value/TestValueAPI.py @@ -45,7 +45,7 @@ self.assertTrue(process, PROCESS_IS_VALID) # Get Frame #0. - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) thread = lldbutil.get_stopped_thread( process, lldb.eStopReasonBreakpoint) self.assertTrue( diff --git a/lldb/test/API/python_api/value/linked_list/TestValueAPILinkedList.py b/lldb/test/API/python_api/value/linked_list/TestValueAPILinkedList.py --- a/lldb/test/API/python_api/value/linked_list/TestValueAPILinkedList.py +++ b/lldb/test/API/python_api/value/linked_list/TestValueAPILinkedList.py @@ -49,7 +49,7 @@ self.assertTrue(process, PROCESS_IS_VALID) # Get Frame #0. - self.assertEqual(process.GetState(), lldb.eStateStopped) + self.assertState(process.GetState(), lldb.eStateStopped) thread = lldbutil.get_stopped_thread( process, lldb.eStopReasonBreakpoint) self.assertTrue( diff --git a/lldb/test/API/python_api/watchpoint/TestSetWatchpoint.py b/lldb/test/API/python_api/watchpoint/TestSetWatchpoint.py --- a/lldb/test/API/python_api/watchpoint/TestSetWatchpoint.py +++ b/lldb/test/API/python_api/watchpoint/TestSetWatchpoint.py @@ -48,8 +48,8 @@ # We should be stopped due to the breakpoint. Get frame #0. process = target.GetProcess() - self.assertEqual(process.GetState(), lldb.eStateStopped, - PROCESS_STOPPED) + self.assertState(process.GetState(), lldb.eStateStopped, + PROCESS_STOPPED) thread = lldbutil.get_stopped_thread( process, lldb.eStopReasonBreakpoint) frame0 = thread.GetFrameAtIndex(0) diff --git a/lldb/test/API/python_api/watchpoint/TestWatchpointIgnoreCount.py b/lldb/test/API/python_api/watchpoint/TestWatchpointIgnoreCount.py --- a/lldb/test/API/python_api/watchpoint/TestWatchpointIgnoreCount.py +++ b/lldb/test/API/python_api/watchpoint/TestWatchpointIgnoreCount.py @@ -55,8 +55,8 @@ # We should be stopped due to the breakpoint. Get frame #0. process = target.GetProcess() - self.assertEqual(process.GetState(), lldb.eStateStopped, - PROCESS_STOPPED) + self.assertState(process.GetState(), lldb.eStateStopped, + PROCESS_STOPPED) thread = lldbutil.get_stopped_thread( process, lldb.eStopReasonBreakpoint) frame0 = thread.GetFrameAtIndex(0) diff --git a/lldb/test/API/python_api/watchpoint/TestWatchpointIter.py b/lldb/test/API/python_api/watchpoint/TestWatchpointIter.py --- a/lldb/test/API/python_api/watchpoint/TestWatchpointIter.py +++ b/lldb/test/API/python_api/watchpoint/TestWatchpointIter.py @@ -51,8 +51,8 @@ # We should be stopped due to the breakpoint. Get frame #0. process = target.GetProcess() - self.assertEqual(process.GetState(), lldb.eStateStopped, - PROCESS_STOPPED) + self.assertState(process.GetState(), lldb.eStateStopped, + PROCESS_STOPPED) thread = lldbutil.get_stopped_thread( process, lldb.eStopReasonBreakpoint) frame0 = thread.GetFrameAtIndex(0) diff --git a/lldb/test/API/python_api/watchpoint/condition/TestWatchpointConditionAPI.py b/lldb/test/API/python_api/watchpoint/condition/TestWatchpointConditionAPI.py --- a/lldb/test/API/python_api/watchpoint/condition/TestWatchpointConditionAPI.py +++ b/lldb/test/API/python_api/watchpoint/condition/TestWatchpointConditionAPI.py @@ -54,8 +54,8 @@ # We should be stopped due to the breakpoint. Get frame #0. process = target.GetProcess() - self.assertEqual(process.GetState(), lldb.eStateStopped, - PROCESS_STOPPED) + self.assertState(process.GetState(), lldb.eStateStopped, + PROCESS_STOPPED) thread = lldbutil.get_stopped_thread( process, lldb.eStopReasonBreakpoint) frame0 = thread.GetFrameAtIndex(0) diff --git a/lldb/test/API/python_api/watchpoint/watchlocation/TestSetWatchlocation.py b/lldb/test/API/python_api/watchpoint/watchlocation/TestSetWatchlocation.py --- a/lldb/test/API/python_api/watchpoint/watchlocation/TestSetWatchlocation.py +++ b/lldb/test/API/python_api/watchpoint/watchlocation/TestSetWatchlocation.py @@ -50,8 +50,8 @@ # We should be stopped due to the breakpoint. Get frame #0. process = target.GetProcess() - self.assertEqual(process.GetState(), lldb.eStateStopped, - PROCESS_STOPPED) + self.assertState(process.GetState(), lldb.eStateStopped, + PROCESS_STOPPED) thread = lldbutil.get_stopped_thread( process, lldb.eStopReasonBreakpoint) frame0 = thread.GetFrameAtIndex(0) diff --git a/lldb/test/API/python_api/watchpoint/watchlocation/TestTargetWatchAddress.py b/lldb/test/API/python_api/watchpoint/watchlocation/TestTargetWatchAddress.py --- a/lldb/test/API/python_api/watchpoint/watchlocation/TestTargetWatchAddress.py +++ b/lldb/test/API/python_api/watchpoint/watchlocation/TestTargetWatchAddress.py @@ -48,8 +48,8 @@ # We should be stopped due to the breakpoint. Get frame #0. process = target.GetProcess() - self.assertEqual(process.GetState(), lldb.eStateStopped, - PROCESS_STOPPED) + self.assertState(process.GetState(), lldb.eStateStopped, + PROCESS_STOPPED) thread = lldbutil.get_stopped_thread( process, lldb.eStopReasonBreakpoint) frame0 = thread.GetFrameAtIndex(0) @@ -122,8 +122,8 @@ # We should be stopped due to the breakpoint. Get frame #0. process = target.GetProcess() - self.assertEqual(process.GetState(), lldb.eStateStopped, - PROCESS_STOPPED) + self.assertState(process.GetState(), lldb.eStateStopped, + PROCESS_STOPPED) thread = lldbutil.get_stopped_thread( process, lldb.eStopReasonBreakpoint) frame0 = thread.GetFrameAtIndex(0)