OSDN Git Service

[lldb] Add expect_var_path to test variable path results
authorRaphael Isemann <teemperor@gmail.com>
Thu, 12 Nov 2020 15:07:58 +0000 (16:07 +0100)
committerRaphael Isemann <teemperor@gmail.com>
Thu, 12 Nov 2020 15:14:48 +0000 (16:14 +0100)
commitd85cc03c9c4cc44c0281320558abc440575ae1d4
tree8c6490a1bd27864da087c6d1c65769cdc45843b6
parent0c0eeb78eb0d77bb31d695a14e9582f75d36a99f
[lldb] Add expect_var_path to test variable path results

This adds `expect_var_path` to test variable paths so we no longer have to
use `frame var` and find substrs in the command output. The behaviour
is identical with `expect_expr` (and it also uses the same checking backend),
but it instead calls `GetValueForVariablePath` to evaluate the string as a variable
path.

Also rewrites a few of the tests that previously used `frame variable` to use
`expect_var_path`.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D90450
lldb/packages/Python/lldbsuite/test/lldbtest.py
lldb/test/API/commands/process/launch-with-shellexpand/TestLaunchWithShellExpand.py
lldb/test/API/functionalities/archives/TestBSDArchives.py
lldb/test/API/lang/cpp/wchar_t/TestCxxWCharT.py