@@ -40,16 +40,16 @@ def expr_cmd_test(self):
40
40
"Set a breakpoint here" , self .main_source_file )
41
41
42
42
frame = thread .GetFrameAtIndex (0 )
43
-
43
+
44
44
# First make sure we can call the function with
45
45
interp = self .dbg .GetCommandInterpreter ()
46
46
self .expect ("expr --allow-jit 1 -- call_me(10)" ,
47
47
substrs = ["(int) $" , "= 18" ])
48
48
# Now make sure it fails with the "can't IR interpret message" if allow-jit is false:
49
49
self .expect ("expr --allow-jit 0 -- call_me(10)" ,
50
50
error = True ,
51
- substrs = ["Can't run the expression locally " ])
52
-
51
+ substrs = ["Can't evaluate the expression without a running target " ])
52
+
53
53
def expr_options_test (self ):
54
54
(target , process , thread , bkpt ) = lldbutil .run_to_source_breakpoint (self ,
55
55
"Set a breakpoint here" , self .main_source_file )
@@ -74,7 +74,7 @@ def expr_options_test(self):
74
74
# Again use it and ensure we fail:
75
75
result = frame .EvaluateExpression ("call_me(10)" , options )
76
76
self .assertTrue (result .GetError ().Fail (), "expression failed with no JIT" )
77
- self .assertTrue ("Can't run the expression locally " in result .GetError ().GetCString (), "Got right error" )
77
+ self .assertTrue ("Can't evaluate the expression without a running target " in result .GetError ().GetCString (), "Got right error" )
78
78
79
79
# Finally set the allow JIT value back to true and make sure that works:
80
80
options .SetAllowJIT (True )
0 commit comments