diff options
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/expression_command/fixits/TestFixIts.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/expression_command/fixits/TestFixIts.py b/lldb/packages/Python/lldbsuite/test/expression_command/fixits/TestFixIts.py index 7f442ab4fe1..7e11f2b201f 100644 --- a/lldb/packages/Python/lldbsuite/test/expression_command/fixits/TestFixIts.py +++ b/lldb/packages/Python/lldbsuite/test/expression_command/fixits/TestFixIts.py @@ -70,8 +70,12 @@ class ExprCommandWithFixits(TestBase): # Now turn off the fixits, and the expression should fail: options.SetAutoApplyFixIts(False) - value = frame.EvaluateExpression("two_error_expression", options) + value = frame.EvaluateExpression(two_error_expression, options) self.assertTrue(value.IsValid()) self.assertTrue(value.GetError().Fail()) + error_string = value.GetError().GetCString() + self.assertTrue(error_string.find("fixed expression suggested:") != -1, "Fix was suggested") + self.assertTrue(error_string.find("my_pointer->second.a") != -1, "Fix was right") + |