llvm-project
94a5aa6f - Add a ValueCheck construction method that takes an SBValue (#216208)

Commit
4 days ago
Add a ValueCheck construction method that takes an SBValue (#216208) Making ValueCheck's can be pretty tedious. But in cases where you are checking an SBValue that comes from some complex operation, e.g. an expression evaluation, you can arrange to have the result you expect as another value in your test program. In that case, it would be much easier to make a SBValue from the reference object, and then compare the result against that reference ValueCheck. This PR adds the valobj based ValueCheck and uses it to replace the hand-crafted one in TestCPPExprResult.py. --------- Co-authored-by: Med Ismail Bennani <ismail@bennani.ma>
Author
Parents
Loading