Skip to content

Commit 3fdd8e3

Browse files
committed
[lldb] review changes.
1 parent 9b4400f commit 3fdd8e3

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

lldb/test/API/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/TestDataFormatterStdMap.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
Test lldb data formatter subsystem.
33
"""
44

5-
from typing import override
6-
from lldbsuite.test.decorators import add_test_categories, expectedFailureAll
5+
from lldbsuite.test.decorators import add_test_categories, expectedFailureAll, skip
76
from lldbsuite.test.lldbtest import (
87
CURRENT_EXECUTABLE_SET,
98
RUN_SUCCEEDED,
@@ -23,16 +22,14 @@ def setUp(self):
2322

2423
@add_test_categories(["libstdcxx"])
2524
@expectedFailureAll(bugnumber="llvm.org/pr50861", compiler="gcc")
26-
@override
2725
def test_with_run_command(self):
2826
build_args = {"EXE": "a.out"}
2927
self.with_run_command("", build_args)
3028

3129
@add_test_categories(["libstdcxx"])
3230
@expectedFailureAll(bugnumber="llvm.org/pr50861", compiler="gcc")
33-
@override
3431
def test_with_run_command_debug(self):
35-
build_args = {"_GLIBCXX_DEBUG": 1, "EXE": "debug_a.out"}
32+
build_args = {"CXXFLAGS": "-D_GLIBCXX_DEBUG", "EXE": "debug_a.out"}
3633
self.with_run_command("__debug::", build_args)
3734

3835
def with_run_command(self, namespace: str, dictionary: dict):
@@ -68,10 +65,13 @@ def cleanup():
6865

6966
self.runCmd("frame variable ii --show-types")
7067

68+
match = f"std::{namespace}map<"
7169
self.runCmd(
72-
f'type summary add -x "std::{namespace}map<" --summary-string "map has ${{svar%#}} items" -e'
70+
f'type summary add -x "{match}" --summary-string "map has ${{svar%#}} items" -e'
7371
)
7472

73+
# self.assertFalse(True, match)
74+
# self.expect("frame variable -D 0 --raw ii", substrs=["boom"])
7575
self.expect("frame variable ii", substrs=["map has 0 items", "{}"])
7676

7777
self.runCmd("c")

lldb/test/API/functionalities/data-formatter/data-formatter-stl/libstdcpp/vbool/TestDataFormatterStdVBool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_with_run_command(self):
2727

2828
@add_test_categories(["libstdcxx"])
2929
def test_with_run_command_debug(self):
30-
build_args = {"EXE": "debug_a.out", "_GLIBCXX_DEBUG": 1}
30+
build_args = {"CXXFLAGS": "-D_GLIBCXX_DEBUG", "EXE": "debug_a.out"}
3131
self.with_run_command(build_args)
3232

3333
def with_run_command(self, dictionary: dict):

lldb/test/API/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/TestDataFormatterStdVector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_with_run_command(self):
2929
@add_test_categories(["libstdcxx"])
3030
@expectedFailureAll(bugnumber="llvm.org/pr50861", compiler="gcc")
3131
def test_with_run_command_debug(self):
32-
build_args = {"_GLIBCXX_DEBUG": 1, "EXE": "debug_a.out"}
32+
build_args = {"CXXFLAGS": "-D_GLIBCXX_DEBUG", "EXE": "debug_a.out"}
3333
self.with_run_command(build_args)
3434

3535
def with_run_command(self, dictionary: dict):

0 commit comments

Comments
 (0)