Skip to content

Commit 33226e0

Browse files
committed
Added TestVectorOfVectorsFromStdModule
1 parent 4736ff6 commit 33226e0

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

lldb/test/API/commands/expression/import-std-module/array/TestArrayFromStdModule.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def test(self):
5353
self.expect_expr("*a.rbegin()", result_type="int", result_value="2")
5454

5555
# This check may fail because of compiler optimizations.
56-
#self.expect_expr("a.at(0)", result_type=value_type, result_value="3")
56+
# self.expect_expr("a.at(0)", result_type=value_type, result_value="3")
5757

5858
# Same again with an array that has an element type from debug info.
5959
array_type = "std::array<DbgInfo, 1>"
@@ -89,6 +89,6 @@ def test(self):
8989
)
9090

9191
# This check may fail because of compiler optimizations.
92-
#self.expect_expr(
93-
# "b.at(0)", result_type=value_type, result_children=dbg_info_elem_children
94-
#)
92+
# self.expect_expr(
93+
# "b.at(0)", result_type=value_type, result_children=dbg_info_elem_children
94+
# )

lldb/test/API/commands/expression/import-std-module/vector-of-vectors/TestVectorOfVectorsFromStdModule.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,5 @@ def test(self):
6060
"a.front().front()", result_type=value_type, result_value="1"
6161
)
6262
self.expect_expr("a[1][1]", result_type=value_type, result_value="2")
63-
self.expect_expr("a.back().at(0)", result_type=value_type, result_value="3")
63+
# Note calling at(0) may fail because of compiler optimizations.
64+
self.expect_expr("a.back()[0]", result_type=value_type, result_value="3")

0 commit comments

Comments
 (0)