shafik added a comment.
I am happy this was not hiding any regressions.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88792/new/
https://reviews.llvm.org/D88792
___
lldb-commits mailing list
This revision was automatically updated to reflect the committed changes.
Closed by commit rG010d7a388b14: [lldb/test] Catch invalid calls to expect()
(authored by kastiglione).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88792/new/
kastiglione updated this revision to Diff 296217.
kastiglione added a comment.
"missing a matcher" -> "missing a matcher argument"
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88792/new/
https://reviews.llvm.org/D88792
Files:
kastiglione added inline comments.
Comment at: lldb/test/API/types/TestRecursiveTypes.py:54
+self.expect("print tpi")
+self.expect("print *tpi")
aprantl wrote:
> I'm not not sure I understand this change?
The second parameter, `msg`, is only
kastiglione added inline comments.
Comment at: lldb/packages/Python/lldbsuite/test/lldbtest.py:2440-2441
+assert "patterns must be a collection of strings" and False
+if isinstance(substrs, six.string_types):
+assert "substrs must be a collection
kastiglione updated this revision to Diff 296215.
kastiglione added a comment.
Resyntax the isinstance asserts; Add expect() tests
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88792/new/
https://reviews.llvm.org/D88792
Files:
aprantl added inline comments.
Comment at: lldb/test/API/types/TestRecursiveTypes.py:54
+self.expect("print tpi")
+self.expect("print *tpi")
I'm not not sure I understand this change?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST
aprantl added a comment.
Oh wow — that paid off!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88792/new/
https://reviews.llvm.org/D88792
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
DavidSpickett added a comment.
Does it make sense to add a few tests for this to
`lldb/test/API/assert_messages_test/TestAssertMessages.py`? (this is only
checking expect() messages, despite the generic name)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
teemperor accepted this revision.
teemperor added a comment.
This revision is now accepted and ready to land.
Thanks for fixing all of this! Beside the assertion this LGTM.
Comment at: lldb/packages/Python/lldbsuite/test/lldbtest.py:2440-2441
+assert "patterns must
labath added inline comments.
Comment at: lldb/packages/Python/lldbsuite/test/lldbtest.py:2440-2441
+assert "patterns must be a collection of strings" and False
+if isinstance(substrs, six.string_types):
+assert "substrs must be a collection of
kastiglione created this revision.
kastiglione added reviewers: aprantl, JDevlieghere, teemperor.
Herald added subscribers: lldb-commits, kbarton, nemanjai.
Herald added a project: LLDB.
kastiglione requested review of this revision.
Add preconditions to `TestBase.expect()` that catch
12 matches
Mail list logo