diff options
author | Dave Lee <davelee.com@gmail.com> | 2020-10-03 22:51:43 -0700 |
---|---|---|
committer | Dave Lee <davelee.com@gmail.com> | 2020-10-05 12:41:52 -0700 |
commit | 010d7a388b146cafaf4bc0b28b952d5852d62b6a (patch) | |
tree | df7b8a111426f5ab8f285c02440de9be82aa18b3 /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | e338f8fe69b869afd8adf53919bd578aaf14fb2f (diff) | |
download | llvm-010d7a388b146cafaf4bc0b28b952d5852d62b6a.zip llvm-010d7a388b146cafaf4bc0b28b952d5852d62b6a.tar.gz llvm-010d7a388b146cafaf4bc0b28b952d5852d62b6a.tar.bz2 |
[lldb/test] Catch invalid calls to expect()
Add preconditions to `TestBase.expect()` that catch semantically invalid calls
that happen to succeed anyway. This also fixes the broken callsites caught by
these checks.
This prevents the following incorrect calls:
1. `self.expect("lldb command", "some substr")`
2. `self.expect("lldb command", "assert message", "some substr")`
Differential Revision: https://reviews.llvm.org/D88792
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions