From 785009e19fbcbeaca206f7e5a786cb034a374e19 Mon Sep 17 00:00:00 2001 From: Dave Lee Date: Wed, 8 Feb 2023 11:29:13 -0800 Subject: [PATCH] [lldb][test] Fix function references to function calls (NFC) --- lldb/test/API/commands/target/stop-hooks/TestStopHookScripted.py | 4 ++-- lldb/test/API/commands/target/stop-hooks/TestStopHooks.py | 4 ++-- lldb/test/API/functionalities/step_scripted/TestStepScripted.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lldb/test/API/commands/target/stop-hooks/TestStopHookScripted.py b/lldb/test/API/commands/target/stop-hooks/TestStopHookScripted.py index a2c9397..ad188a3 100644 --- a/lldb/test/API/commands/target/stop-hooks/TestStopHookScripted.py +++ b/lldb/test/API/commands/target/stop-hooks/TestStopHookScripted.py @@ -83,7 +83,7 @@ class TestStopHooks(TestBase): command = "target stop-hook add -G 1 -P stop_hook.stop_handler -k increment -v 5 -n step_out_of_me" self.interp.HandleCommand(command, result) - self.assertTrue(result.Succeeded, "Set the target stop hook") + self.assertTrue(result.Succeeded(), "Set the target stop hook") # First run to main. If we go straight to the first stop hook hit, # run_to_source_breakpoint will fail because we aren't at original breakpoint @@ -131,7 +131,7 @@ class TestStopHooks(TestBase): command += specifier self.interp.HandleCommand(command, result) - self.assertTrue(result.Succeeded, "Set the target stop hook") + self.assertTrue(result.Succeeded(), "Set the target stop hook") (target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(self, "Set a breakpoint here", self.main_source_file) # At this point we've hit our stop hook so we should have run our expression, diff --git a/lldb/test/API/commands/target/stop-hooks/TestStopHooks.py b/lldb/test/API/commands/target/stop-hooks/TestStopHooks.py index 38bb174..da27815 100644 --- a/lldb/test/API/commands/target/stop-hooks/TestStopHooks.py +++ b/lldb/test/API/commands/target/stop-hooks/TestStopHooks.py @@ -39,7 +39,7 @@ class TestStopHooks(TestBase): interp = self.dbg.GetCommandInterpreter() result = lldb.SBCommandReturnObject() interp.HandleCommand("target stop-hook add -o 'expr g_var++'", result) - self.assertTrue(result.Succeeded, "Set the target stop hook") + self.assertTrue(result.Succeeded(), "Set the target stop hook") thread.StepOut() var = target.FindFirstGlobalVariable("g_var") self.assertTrue(var.IsValid()) @@ -49,7 +49,7 @@ class TestStopHooks(TestBase): interp = self.dbg.GetCommandInterpreter() result = lldb.SBCommandReturnObject() interp.HandleCommand("target stop-hook add -o 'expr g_var++'", result) - self.assertTrue(result.Succeeded, "Set the target stop hook") + self.assertTrue(result.Succeeded(), "Set the target stop hook") (target, process, thread, first_bkpt) = lldbutil.run_to_source_breakpoint(self, "Set a breakpoint here", self.main_source_file) diff --git a/lldb/test/API/functionalities/step_scripted/TestStepScripted.py b/lldb/test/API/functionalities/step_scripted/TestStepScripted.py index 189c792..b02c5eb 100644 --- a/lldb/test/API/functionalities/step_scripted/TestStepScripted.py +++ b/lldb/test/API/functionalities/step_scripted/TestStepScripted.py @@ -148,6 +148,6 @@ class StepScriptedTestCase(TestBase): result = lldb.SBCommandReturnObject() interp.HandleCommand("settings set target.process.run-all-threads true", result) - self.assertTrue(result.Succeeded, "setting run-all-threads works.") + self.assertTrue(result.Succeeded(), "setting run-all-threads works.") self.run_step(False, None, thread_id) -- 2.7.4