[lldb] Print result when expect_expr unexpectedly succeeds

This commit is contained in:
Raphael Isemann 2020-02-14 12:57:10 +01:00
parent 2492075add
commit a57ad008b4
1 changed files with 1 additions and 1 deletions

View File

@ -2397,7 +2397,7 @@ FileCheck output:
eval_result = frame.EvaluateExpression(expr)
if error_msg:
self.assertFalse(eval_result.IsValid())
self.assertFalse(eval_result.IsValid(), "Unexpected success with result: '" + str(eval_result) + "'")
self.assertEqual(error_msg, eval_result.GetError().GetCString())
return