Skip to content

Commit 912ab52

Browse files
committed
[lldb][test] Adjust import-std-module shared_ptr/weak_ptr tests
The formatters for these have been reworked in recent patches.
1 parent 84e5451 commit 912ab52

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

lldb/test/API/commands/expression/import-std-module/shared_ptr-dbg-info-content/TestSharedPtrDbgInfoContentFromStdModule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test(self):
2323
self.expect_expr(
2424
"s",
2525
result_type="std::shared_ptr<Foo>",
26-
result_children=[ValueCheck(name="__ptr_")],
26+
result_children=[ValueCheck(name="pointer")],
2727
)
2828
self.expect_expr("s->a", result_type="int", result_value="3")
2929
self.expect_expr("s->a = 5", result_type="int", result_value="5")

lldb/test/API/commands/expression/import-std-module/shared_ptr/TestSharedPtrFromStdModule.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class TestSharedPtr(TestBase):
1111
@add_test_categories(["libc++"])
1212
@skipIf(compiler=no_match("clang"))
13-
@skipIf(compiler="clang", compiler_version=['<', '17.0'])
13+
@skipIf(compiler="clang", compiler_version=["<", "17.0"])
1414
@skipUnlessDarwin
1515
def test(self):
1616
self.build()
@@ -24,8 +24,8 @@ def test(self):
2424
self.expect_expr(
2525
"s",
2626
result_type="std::shared_ptr<int>",
27-
result_summary="3 strong=1 weak=1",
28-
result_children=[ValueCheck(name="__ptr_")],
27+
result_summary="3 strong=1 weak=0",
28+
result_children=[ValueCheck(name="pointer")],
2929
)
3030
self.expect_expr("*s", result_type="element_type", result_value="3")
3131
self.expect_expr("*s = 5", result_type="element_type", result_value="5")

lldb/test/API/commands/expression/import-std-module/weak_ptr-dbg-info-content/TestDbgInfoContentWeakPtrFromStdModule.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class TestDbgInfoContentWeakPtr(TestBase):
1111
@add_test_categories(["libc++"])
1212
@skipIf(compiler=no_match("clang"))
13-
@skipIf(compiler="clang", compiler_version=['<', '17.0'])
13+
@skipIf(compiler="clang", compiler_version=["<", "17.0"])
1414
@skipUnlessDarwin
1515
def test(self):
1616
self.build()
@@ -24,7 +24,7 @@ def test(self):
2424
self.expect_expr(
2525
"w",
2626
result_type="std::weak_ptr<Foo>",
27-
result_children=[ValueCheck(name="__ptr_")],
27+
result_children=[ValueCheck(name="pointer")],
2828
)
2929
self.expect_expr("*w.lock()", result_type="element_type")
3030
self.expect_expr("w.lock()->a", result_type="int", result_value="3")

lldb/test/API/commands/expression/import-std-module/weak_ptr/TestWeakPtrFromStdModule.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
class TestSharedPtr(TestBase):
1111
@add_test_categories(["libc++"])
1212
@skipIf(compiler=no_match("clang"))
13-
@skipIf(compiler="clang", compiler_version=['<', '17.0'])
13+
@skipIf(compiler="clang", compiler_version=["<", "17.0"])
1414
@skipUnlessDarwin
1515
def test(self):
1616
self.build()
@@ -24,8 +24,8 @@ def test(self):
2424
self.expect_expr(
2525
"w",
2626
result_type="std::weak_ptr<int>",
27-
result_summary="3 strong=1 weak=2",
28-
result_children=[ValueCheck(name="__ptr_")],
27+
result_summary="3 strong=1 weak=1",
28+
result_children=[ValueCheck(name="pointer")],
2929
)
3030
self.expect_expr("*w.lock()", result_type="element_type", result_value="3")
3131
self.expect_expr("*w.lock() = 5", result_type="element_type", result_value="5")

0 commit comments

Comments
 (0)