Skip to content

Commit

Permalink
[lldb] Print result when expect_expr unexpectedly succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
Teemperor committed Feb 14, 2020
1 parent 2492075 commit a57ad00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lldb/packages/Python/lldbsuite/test/lldbtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2397,7 +2397,7 @@ def expect_expr(
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

Expand Down

0 comments on commit a57ad00

Please sign in to comment.