Temporarily XFAIL libcxx tests.
authorAdrian Prantl <aprantl@apple.com>
Fri, 9 Sep 2022 17:40:41 +0000 (10:40 -0700)
committerAdrian Prantl <aprantl@apple.com>
Fri, 9 Sep 2022 17:43:03 +0000 (10:43 -0700)
These tests started failing on green dragon after a configuration change that compiles tests using the just-built libcxx. We may need to force the system libcxx here, or change LLDB to import the std module from the just-built libcxx, too.

lldb/test/API/commands/expression/import-std-module/deque-basic/TestDequeFromStdModule.py
lldb/test/API/commands/expression/import-std-module/deque-dbg-info-content/TestDbgInfoContentDequeFromStdModule.py
lldb/test/API/commands/expression/import-std-module/vector-dbg-info-content/TestDbgInfoContentVectorFromStdModule.py
lldb/test/API/commands/expression/import-std-module/vector/TestVectorFromStdModule.py
lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/iterator/TestDataFormatterLibccIterator.py
lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/span/TestDataFormatterLibcxxSpan.py
lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/string_view/TestDataFormatterLibcxxStringView.py
lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/variant/TestDataFormatterLibcxxVariant.py

index 44327c9..7b514b0 100644 (file)
@@ -10,6 +10,7 @@ from lldbsuite.test import lldbutil
 class TestBasicDeque(TestBase):
 
     @add_test_categories(["libc++"])
+    @expectedFailureDarwin
     @skipIf(compiler=no_match("clang"))
     def test(self):
         self.build()
index ff32eed..8b98a52 100644 (file)
@@ -10,6 +10,7 @@ from lldbsuite.test import lldbutil
 class TestDbgInfoContentDeque(TestBase):
 
     @add_test_categories(["libc++"])
+    @expectedFailureDarwin # FIXME: May need to force system libcxx here.
     @skipIf(compiler=no_match("clang"))
     def test(self):
         self.build()
index c2044ce..8d0e926 100644 (file)
@@ -11,6 +11,7 @@ from lldbsuite.test import lldbutil
 class TestDbgInfoContentVector(TestBase):
 
     @add_test_categories(["libc++"])
+    @expectedFailureDarwin # FIXME: May need to force system libcxx here.
     @skipIf(compiler=no_match("clang"))
     def test(self):
         self.build()
index 59b3e4f..44bee3d 100644 (file)
@@ -10,6 +10,7 @@ from lldbsuite.test import lldbutil
 class TestBasicVector(TestBase):
 
     @add_test_categories(["libc++"])
+    @expectedFailureDarwin # FIXME: May need to force system libcxx here.
     @skipIf(compiler=no_match("clang"))
     def test(self):
         self.build()
index 55db9c2..b6682e5 100644 (file)
@@ -19,6 +19,7 @@ class LibcxxIteratorDataFormatterTestCase(TestBase):
         self.line = line_number('main.cpp', '// Set break point at this line.')
         self.namespace = 'std'
 
+    @expectedFailureDarwin # FIXME: May need to force system libcxx here.
     @add_test_categories(["libc++"])
     def test_with_run_command(self):
         """Test that libc++ iterators format properly."""
index 3236544..6d78659 100644 (file)
@@ -43,6 +43,7 @@ class LibcxxSpanDataFormatterTestCase(TestBase):
         self.expect_var_path(f'{var_name}[4]', type='int', value='12345')
 
     @add_test_categories(['libc++'])
+    @expectedFailureDarwin # FIXME: May need to force system libcxx here.
     @skipIf(compiler='clang', compiler_version=['<', '11.0'])
     def test_with_run_command(self):
         """Test that std::span variables are formatted correctly when printed."""
index db82e7c..1090e6c 100644 (file)
@@ -21,6 +21,7 @@ class LibcxxStringViewDataFormatterTestCase(TestBase):
         self.line2 = line_number('main.cpp', '// Break here to look at bad string view.' )
 
     @add_test_categories(["libc++"])
+    @expectedFailureDarwin # FIXME: May need to force system libcxx here.
     @expectedFailureAll(bugnumber="llvm.org/pr36109", debug_info="gmodules", triple=".*-android")
     # Inline namespace is randomly ignored as Clang due to broken lookup inside
     # the std namespace.
index 27724b2..9cb36e4 100644 (file)
@@ -19,7 +19,7 @@ class LibcxxVariantDataFormatterTestCase(TestBase):
     @skipIf(compiler="gcc", compiler_version=['<', '5.1'])
     ## std::get is unavailable for std::variant before macOS 10.14
     @skipIf(macos_version=["<", "10.14"])
-
+    @expectedFailureDarwin # FIXME: May need to force system libcxx here.
     def test_with_run_command(self):
         """Test that that file and class static variables display correctly."""
         self.build()