[lldb][test] Fix duplicate error messages in expect_expr/var_path#202310
[lldb][test] Fix duplicate error messages in expect_expr/var_path#202310Teemperor wants to merge 1 commit into
Conversation
|
@llvm/pr-subscribers-lldb Author: Raphael Isemann (Teemperor) ChangesThe error message field for expect_* methods always prints the value object, so there is no need to specify a custom error message that then just prints the object too. This fixes the duplicate value object printout on test failures. Full diff: https://github.com/llvm/llvm-project/pull/202310.diff 1 Files Affected:
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index 76b6fe7d7f637..f7d0d317f0535 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -2923,7 +2923,7 @@ def expect_expr(
summary=result_summary,
children=result_children,
)
- value_check.check_value(self, eval_result, str(eval_result))
+ value_check.check_value(self, eval_result)
return eval_result
def expect_var_path(
@@ -2950,7 +2950,7 @@ def expect_var_path(
value_check = ValueCheck(
type=type, value=value, summary=summary, children=children
)
- value_check.check_value(self, eval_result, str(eval_result))
+ value_check.check_value(self, eval_result)
return eval_result
"""Assert that an lldb.SBError is in the "success" state."""
|
|
For reviewing, the value check function starts with this, so this custom error_msg is redundant. |
|
sccache failed to start in the Windows job. rerunning. |
|
Hey @boomanaiden154, there seems to be an issue with sccache not being able to connect on the Windows runners. I'm not sure who to ping regarding this. |
The error message field for expect_* methods always prints the value object, so there is no need to specify a custom error message that then just prints the object too. This fixes the duplicate value object printout on test failures.
10c815c to
7e425be
Compare
|
The general practice is to file |
The error message field for expect_* methods always prints the value object, so there is no need to specify a custom error message that then just prints the object too.
This fixes the duplicate value object printout on test failures.