[LLDB] Fix TestStructuredBinding.py for libstdc++
authorShafik Yaghmour <syaghmour@apple.com>
Thu, 17 Feb 2022 19:29:05 +0000 (11:29 -0800)
committerShafik Yaghmour <syaghmour@apple.com>
Thu, 17 Feb 2022 19:30:07 +0000 (11:30 -0800)
For the tuple case for the TestStructuredBinding.py the result type is different
between libc++ and libstdc++.

lldb/test/API/lang/cpp/structured-binding/TestStructuredBinding.py

index 6943773..9f57d45 100644 (file)
@@ -75,10 +75,10 @@ class TestStructuredBinding(TestBase):
         self.expect_expr("iarr_copy2", result_type="int", result_value="33")
         self.expect_expr("iarr_copy3", result_type="int", result_value="44")
 
-        self.expect_expr("tx1", result_type="float", result_value="4")
-        self.expect_expr("ty1", result_type="char", result_value="'z'")
-        self.expect_expr("tz1", result_type="int", result_value="10")
+        self.expect_expr("tx1", result_value="4")
+        self.expect_expr("ty1", result_value="'z'")
+        self.expect_expr("tz1", result_value="10")
 
-        self.expect_expr("tx2", result_type="float", result_value="4")
-        self.expect_expr("ty2", result_type="char", result_value="'z'")
-        self.expect_expr("tz2", result_type="int", result_value="10")
+        self.expect_expr("tx2", result_value="4")
+        self.expect_expr("ty2", result_value="'z'")
+        self.expect_expr("tz2", result_value="10")