diff options
author | Dave Lee <davelee.com@gmail.com> | 2022-01-09 15:01:53 -0800 |
---|---|---|
committer | Dave Lee <davelee.com@gmail.com> | 2022-01-09 21:37:42 -0800 |
commit | 4a8549354c1b77ce830e488ceefa05dfb4bc9325 (patch) | |
tree | c3911ef366a733bcb0f900e7baf69947e4ef1b59 | |
parent | aad27a890754fe13bd57a99a838307fee81496ee (diff) | |
download | llvm-4a8549354c1b77ce830e488ceefa05dfb4bc9325.tar.gz |
[lldb] Guard libstdc++ specific 'frame var' test
While working on D116788 (properly error out of `frame var`), this libstdc++
specific `frame var` invocation was found in the tests. This test is in the
generic directory, but has this one case that requires libstdc++. The fix here
is to put the one `expect()` inside of a condition that checks for libstdc++.
Differential Revision: https://reviews.llvm.org/D116901
-rw-r--r-- | lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/list/TestDataFormatterGenericList.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/list/TestDataFormatterGenericList.py b/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/list/TestDataFormatterGenericList.py index 82fe84efc7b4..74269ef55e82 100644 --- a/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/list/TestDataFormatterGenericList.py +++ b/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/list/TestDataFormatterGenericList.py @@ -62,12 +62,14 @@ class GenericListDataFormatterTestCase(TestBase): self.expect("frame variable numbers_list --raw", matching=False, substrs=['size=0', '{}']) - self.expect( - "frame variable &numbers_list._M_impl._M_node --raw", - matching=False, - substrs=[ - 'size=0', - '{}']) + + if stdlib_type == USE_LIBSTDCPP: + self.expect( + "frame variable &numbers_list._M_impl._M_node --raw", + matching=False, + substrs=[ + 'size=0', + '{}']) self.expect("frame variable numbers_list", substrs=['size=0', |