[lldb][Test] TestDataFormatterLibcxxRangesRefView.py: skip on old compiler versions
authorMichael Buch <michaelbuch12@gmail.com>
Tue, 3 Jan 2023 13:11:16 +0000 (13:11 +0000)
committerMichael Buch <michaelbuch12@gmail.com>
Tue, 3 Jan 2023 13:12:31 +0000 (13:12 +0000)
`std::ranges` are only available in libcxx shipped with Clang > 15.0

lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/ranges/ref_view/TestDataFormatterLibcxxRangesRefView.py

index 38b9760..1fc8026 100644 (file)
@@ -28,6 +28,7 @@ class LibcxxRangesRefViewDataFormatterTestCase(TestBase):
                 children=self.check_string_vec_children())
 
     @add_test_categories(["libc++"])
+    @skipIf(compiler=no_match("clang"), compiler_version=['<', '16.0'])
     def test_with_run_command(self):
         """Test that std::ranges::ref_view is formatted correctly when printed.
         """