[Lldb-commits] [PATCH] D82759: [lldb/Test] Introduce "assertSuccess"

2020-06-30 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. labath marked an inline comment as done. Closed by commit rG35674976f09e: [lldb/Test] Introduce "assertSuccess" (authored by labath). Changed prior to commit: https://reviews.llvm.org/D82759?vs=274070&id=274459#toc Repos

[Lldb-commits] [PATCH] D82759: [lldb/Test] Introduce "assertSuccess"

2020-06-30 Thread Pavel Labath via Phabricator via lldb-commits
labath marked 3 inline comments as done. labath added inline comments. Comment at: lldb/packages/Python/lldbsuite/test/lldbtest.py:2537 +def assertSuccess(self, obj, msg=None): +if not obj.Success(): +error = obj.GetCString() teemperor wro

[Lldb-commits] [PATCH] D82759: [lldb/Test] Introduce "assertSuccess"

2020-06-30 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor accepted this revision. teemperor added a comment. LGTM, thanks! Comment at: lldb/packages/Python/lldbsuite/test/lldbtest.py:2537 +def assertSuccess(self, obj, msg=None): +if not obj.Success(): +error = obj.GetCString() JDevlie

[Lldb-commits] [PATCH] D82759: [lldb/Test] Introduce "assertSuccess"

2020-06-29 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere accepted this revision. JDevlieghere added a comment. This revision is now accepted and ready to land. Looks like a great improvement! At some point we should document our custom methods in https://lldb.llvm.org/resources/test.html to make them more discoverable, but that's orthogo

[Lldb-commits] [PATCH] D82759: [lldb/Test] Introduce "assertSuccess"

2020-06-29 Thread Pavel Labath via Phabricator via lldb-commits
labath created this revision. labath added reviewers: teemperor, JDevlieghere. Herald added a subscriber: arphaman. Herald added a project: LLDB. A lot of our tests do 'self.assertTrue(error.Success()'. The problem with that is that when this fails, it produces a completely useless error message (