Skip to content

Commit 4a85493

Browse files
committed
[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
1 parent aad27a8 commit 4a85493

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/list/TestDataFormatterGenericList.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,14 @@ def cleanup():
6262
self.expect("frame variable numbers_list --raw", matching=False,
6363
substrs=['size=0',
6464
'{}'])
65-
self.expect(
66-
"frame variable &numbers_list._M_impl._M_node --raw",
67-
matching=False,
68-
substrs=[
69-
'size=0',
70-
'{}'])
65+
66+
if stdlib_type == USE_LIBSTDCPP:
67+
self.expect(
68+
"frame variable &numbers_list._M_impl._M_node --raw",
69+
matching=False,
70+
substrs=[
71+
'size=0',
72+
'{}'])
7173

7274
self.expect("frame variable numbers_list",
7375
substrs=['size=0',

0 commit comments

Comments
 (0)