Skip to content

Commit 785009e

Browse files
committed
[lldb][test] Fix function references to function calls (NFC)
1 parent db6bee5 commit 785009e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lldb/test/API/commands/target/stop-hooks/TestStopHookScripted.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def do_test_auto_continue(self, return_true):
8383
command = "target stop-hook add -G 1 -P stop_hook.stop_handler -k increment -v 5 -n step_out_of_me"
8484

8585
self.interp.HandleCommand(command, result)
86-
self.assertTrue(result.Succeeded, "Set the target stop hook")
86+
self.assertTrue(result.Succeeded(), "Set the target stop hook")
8787

8888
# First run to main. If we go straight to the first stop hook hit,
8989
# run_to_source_breakpoint will fail because we aren't at original breakpoint
@@ -131,7 +131,7 @@ def stop_hooks_scripted(self, g_var_value, specifier = None):
131131
command += specifier
132132

133133
self.interp.HandleCommand(command, result)
134-
self.assertTrue(result.Succeeded, "Set the target stop hook")
134+
self.assertTrue(result.Succeeded(), "Set the target stop hook")
135135
(target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(self,
136136
"Set a breakpoint here", self.main_source_file)
137137
# At this point we've hit our stop hook so we should have run our expression,

lldb/test/API/commands/target/stop-hooks/TestStopHooks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def step_out_test(self):
3939
interp = self.dbg.GetCommandInterpreter()
4040
result = lldb.SBCommandReturnObject()
4141
interp.HandleCommand("target stop-hook add -o 'expr g_var++'", result)
42-
self.assertTrue(result.Succeeded, "Set the target stop hook")
42+
self.assertTrue(result.Succeeded(), "Set the target stop hook")
4343
thread.StepOut()
4444
var = target.FindFirstGlobalVariable("g_var")
4545
self.assertTrue(var.IsValid())
@@ -49,7 +49,7 @@ def after_expr_test(self):
4949
interp = self.dbg.GetCommandInterpreter()
5050
result = lldb.SBCommandReturnObject()
5151
interp.HandleCommand("target stop-hook add -o 'expr g_var++'", result)
52-
self.assertTrue(result.Succeeded, "Set the target stop hook")
52+
self.assertTrue(result.Succeeded(), "Set the target stop hook")
5353

5454
(target, process, thread, first_bkpt) = lldbutil.run_to_source_breakpoint(self,
5555
"Set a breakpoint here", self.main_source_file)

lldb/test/API/functionalities/step_scripted/TestStepScripted.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,6 @@ def do_test_stop_others(self):
148148
result = lldb.SBCommandReturnObject()
149149

150150
interp.HandleCommand("settings set target.process.run-all-threads true", result)
151-
self.assertTrue(result.Succeeded, "setting run-all-threads works.")
151+
self.assertTrue(result.Succeeded(), "setting run-all-threads works.")
152152

153153
self.run_step(False, None, thread_id)

0 commit comments

Comments
 (0)