Skip to content

Commit bd20056

Browse files
committed
fixup! uncomment subobject constructor test
1 parent 84de12d commit bd20056

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/shared_ptr/TestDataFormatterLibcxxSharedPtr.py

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -91,19 +91,17 @@ def test_shared_ptr_variables(self):
9191
self.expect_var_path("sp_user->id", type="int", value="30")
9292
self.expect_var_path("sp_user->name", type="std::string", summary='"steph"')
9393

94-
#valobj = self.expect_var_path(
95-
# "si",
96-
# type="std::shared_ptr<int> &",
97-
# children=[ValueCheck(name="__ptr_")],
98-
#)
99-
#self.assertRegex(valobj.summary, r"^10( strong=1)? weak=1$")
100-
101-
#valobj = self.expect_var_path(
102-
# "sie",
103-
# type="std::shared_ptr<int> &",
104-
# children=[ValueCheck(name="__ptr_")],
105-
#)
106-
#self.assertRegex(valobj.summary, r"^10( strong=1)? weak=1$")
94+
valobj = self.expect_var_path(
95+
"si",
96+
type="std::shared_ptr<int>",
97+
summary="47 strong=2 weak=1"
98+
)
99+
100+
valobj = self.expect_var_path(
101+
"sie",
102+
type="std::shared_ptr<int>",
103+
summary="nullptr strong=2 weak=1"
104+
)
107105

108106
self.runCmd("settings set target.experimental.use-DIL true")
109107
self.expect_var_path("ptr_node->value", value="1")

0 commit comments

Comments
 (0)