[Lldb-commits] [lldb] 58a25eb - [lldb-tests] Add libcxx version check for regex tests

Felipe de Azevedo Piovezan via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 18 10:49:34 PDT 2022


Author: Felipe de Azevedo Piovezan
Date: 2022-10-18T13:49:19-04:00
New Revision: 58a25ebb8622ee27034f0c103a9067acda7f6300

URL: https://github.com/llvm/llvm-project/commit/58a25ebb8622ee27034f0c103a9067acda7f6300
DIFF: https://github.com/llvm/llvm-project/commit/58a25ebb8622ee27034f0c103a9067acda7f6300.diff

LOG: [lldb-tests] Add libcxx version check for regex tests

Regex requires the c++20 flag, which was not introduced available prior
to Clang 11.

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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/functionalities/step-avoids-regexp/TestStepAvoidsRegexp.py b/lldb/test/API/functionalities/step-avoids-regexp/TestStepAvoidsRegexp.py
index 781928ab5a440..ffca513886f05 100644
--- a/lldb/test/API/functionalities/step-avoids-regexp/TestStepAvoidsRegexp.py
+++ b/lldb/test/API/functionalities/step-avoids-regexp/TestStepAvoidsRegexp.py
@@ -20,6 +20,7 @@ def setUp(self):
                 "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 @@ def test_step_avoid_regex(self):
         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"""


        


More information about the lldb-commits mailing list