llvm-project/lldb/test/API/commands/frame/diagnose
Dave Lee 010d7a388b [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
2020-10-05 12:41:52 -07:00
..
array
bad-reference [lldb/test] Catch invalid calls to expect() 2020-10-05 12:41:52 -07:00
complicated-expression [lldb/test] Catch invalid calls to expect() 2020-10-05 12:41:52 -07:00
dereference-argument [lldb/test] Catch invalid calls to expect() 2020-10-05 12:41:52 -07:00
dereference-function-return
dereference-this [lldb/test] Catch invalid calls to expect() 2020-10-05 12:41:52 -07:00
inheritance [lldb/test] Catch invalid calls to expect() 2020-10-05 12:41:52 -07:00
local-variable [lldb/test] Catch invalid calls to expect() 2020-10-05 12:41:52 -07:00
virtual-method-call [lldb/test] Catch invalid calls to expect() 2020-10-05 12:41:52 -07:00