[lldb][test] Fix function references to function calls (NFC)
authorDave Lee <davelee.com@gmail.com>
Wed, 8 Feb 2023 19:29:13 +0000 (11:29 -0800)
committerDave Lee <davelee.com@gmail.com>
Wed, 8 Feb 2023 20:12:33 +0000 (12:12 -0800)
lldb/test/API/commands/target/stop-hooks/TestStopHookScripted.py
lldb/test/API/commands/target/stop-hooks/TestStopHooks.py
lldb/test/API/functionalities/step_scripted/TestStepScripted.py

index a2c9397..ad188a3 100644 (file)
@@ -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,
index 38bb174..da27815 100644 (file)
@@ -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)
index 189c792..b02c5eb 100644 (file)
@@ -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)