forked from OSchip/llvm-project
[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
This commit is contained in:
parent
aad27a8907
commit
4a8549354c
lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/list
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue