[Lldb-commits] [lldb] a57ad00 - [lldb] Print result when expect_expr unexpectedly succeeds
Raphael Isemann via lldb-commits
lldb-commits at lists.llvm.org
Fri Feb 14 03:57:50 PST 2020
Author: Raphael Isemann
Date: 2020-02-14T12:57:10+01:00
New Revision: a57ad008b449a95249a42582370a5f0fefccbf03
URL: https://github.com/llvm/llvm-project/commit/a57ad008b449a95249a42582370a5f0fefccbf03
DIFF: https://github.com/llvm/llvm-project/commit/a57ad008b449a95249a42582370a5f0fefccbf03.diff
LOG: [lldb] Print result when expect_expr unexpectedly succeeds
Added:
Modified:
lldb/packages/Python/lldbsuite/test/lldbtest.py
Removed:
################################################################################
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index fa93cce73be5..784d6ecd2ddf 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -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
More information about the lldb-commits
mailing list