File tree 1 file changed +3
-1
lines changed
lldb/test/API/python_api/interpreter_callback
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ def test_command_interpreter_print_callback(self):
38
38
def handling_callback (return_object ):
39
39
nonlocal called
40
40
called = True
41
+ self .assertEqual ("help help" , return_object .GetCommand ())
41
42
self .assertIn (needle , return_object .GetOutput ())
42
43
return lldb .eCommandReturnObjectPrintCallbackHandled
43
44
@@ -53,13 +54,14 @@ def handling_callback(return_object):
53
54
def non_handling_callback (return_object ):
54
55
nonlocal called
55
56
called = True
57
+ self .assertEqual ("he help" , return_object .GetCommand ())
56
58
self .assertIn (needle , return_object .GetOutput ())
57
59
return lldb .eCommandReturnObjectPrintCallbackSkipped
58
60
59
61
called = False
60
62
ci .SetPrintCallback (non_handling_callback )
61
63
self .assertFalse (called )
62
- self .run_command_interpreter_with_output_file (out_filename , "help help\n " )
64
+ self .run_command_interpreter_with_output_file (out_filename , "he help\n " )
63
65
self .assertTrue (called )
64
66
65
67
with open (out_filename , "r" ) as f :
You can’t perform that action at this time.
0 commit comments