[lldb-tests] Add libcxx version check for regex tests
authorFelipe de Azevedo Piovezan <fpiovezan@apple.com>
Tue, 18 Oct 2022 13:13:45 +0000 (09:13 -0400)
committerFelipe de Azevedo Piovezan <fpiovezan@apple.com>
Tue, 18 Oct 2022 17:49:19 +0000 (13:49 -0400)
Regex requires the c++20 flag, which was not introduced available prior
to Clang 11.

Differential Revision: https://reviews.llvm.org/D136165

lldb/test/API/functionalities/step-avoids-regexp/TestStepAvoidsRegexp.py

index 781928a..ffca513 100644 (file)
@@ -20,6 +20,7 @@ class StepAvoidsRegexTestCase(TestBase):
                 "settings set target.process.thread.step-avoid-regexp ^ignore::")
 
     @skipIfWindows
+    @skipIf(compiler="clang", compiler_version=['<', '11.0'])
     def test_step_avoid_regex(self):
         """Tests stepping into a function which matches the avoid regex"""
         self.build()
@@ -38,6 +39,7 @@ class StepAvoidsRegexTestCase(TestBase):
         self.hit_correct_function("main")
 
     @skipIfWindows
+    @skipIf(compiler="clang", compiler_version=['<', '11.0'])
     @expectedFailureAll(bugnumber="rdar://100645742")
     def test_step_avoid_regex_abi_tagged_template(self):
         """Tests stepping into an ABI tagged function that matches the avoid regex"""