[Lldb-commits] [lldb] 587a397 - Skip tests when compiler with older versions of clang

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Fri Nov 19 09:05:55 PST 2021


Author: Adrian Prantl
Date: 2021-11-19T09:05:48-08:00
New Revision: 587a397917b267fb570cf9f6c7dd0f718b51d9de

URL: https://github.com/llvm/llvm-project/commit/587a397917b267fb570cf9f6c7dd0f718b51d9de
DIFF: https://github.com/llvm/llvm-project/commit/587a397917b267fb570cf9f6c7dd0f718b51d9de.diff

LOG: Skip tests when compiler with older versions of clang

Added: 
    

Modified: 
    lldb/test/API/commands/expression/import-std-module/unique_ptr/TestUniquePtrFromStdModule.py
    lldb/test/API/functionalities/mtc/simple/TestMTCSimple.py
    lldb/test/API/lang/objc/modules-compile-error/TestModulesCompileError.py
    lldb/test/API/tools/lldb-server/TestLldbGdbServer.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/commands/expression/import-std-module/unique_ptr/TestUniquePtrFromStdModule.py b/lldb/test/API/commands/expression/import-std-module/unique_ptr/TestUniquePtrFromStdModule.py
index 878315b8eafdc..f8e1aa708f57c 100644
--- a/lldb/test/API/commands/expression/import-std-module/unique_ptr/TestUniquePtrFromStdModule.py
+++ b/lldb/test/API/commands/expression/import-std-module/unique_ptr/TestUniquePtrFromStdModule.py
@@ -13,6 +13,7 @@ class TestUniquePtr(TestBase):
 
     @add_test_categories(["libc++"])
     @skipIf(compiler=no_match("clang"))
+    @skipIf(compiler="clang", compiler_version=['<', '9.0'])
     @skipIfLinux # s.reset() causes link errors on ubuntu 18.04/Clang 9
     def test(self):
         self.build()

diff  --git a/lldb/test/API/functionalities/mtc/simple/TestMTCSimple.py b/lldb/test/API/functionalities/mtc/simple/TestMTCSimple.py
index 23fe72ea50122..a4deb96c75ac9 100644
--- a/lldb/test/API/functionalities/mtc/simple/TestMTCSimple.py
+++ b/lldb/test/API/functionalities/mtc/simple/TestMTCSimple.py
@@ -15,6 +15,7 @@ class MTCSimpleTestCase(TestBase):
     mydir = TestBase.compute_mydir(__file__)
 
     @skipUnlessDarwin
+    @skipIf(compiler="clang", compiler_version=['<', '9.0'])
     def test(self):
         self.mtc_dylib_path = findMainThreadCheckerDylib()
         if self.mtc_dylib_path == "":
@@ -24,6 +25,7 @@ def test(self):
         self.mtc_tests()
 
     @skipIf(archs=['i386'])
+    @skipIf(compiler="clang", compiler_version=['<', '9.0'])
     def mtc_tests(self):
         self.assertNotEqual(self.mtc_dylib_path, "")
 

diff  --git a/lldb/test/API/lang/objc/modules-compile-error/TestModulesCompileError.py b/lldb/test/API/lang/objc/modules-compile-error/TestModulesCompileError.py
index 610d001a67836..36cf050011c8e 100644
--- a/lldb/test/API/lang/objc/modules-compile-error/TestModulesCompileError.py
+++ b/lldb/test/API/lang/objc/modules-compile-error/TestModulesCompileError.py
@@ -7,6 +7,7 @@ class TestCase(TestBase):
 
     mydir = TestBase.compute_mydir(__file__)
 
+    @skipIf(compiler="clang", compiler_version=['<', '11.0'])
     def test(self):
         self.build()
         lldbutil.run_to_source_breakpoint(self, "// break here", lldb.SBFileSpec("main.m"))

diff  --git a/lldb/test/API/tools/lldb-server/TestLldbGdbServer.py b/lldb/test/API/tools/lldb-server/TestLldbGdbServer.py
index 2f76654c47b12..01ae2428f3388 100644
--- a/lldb/test/API/tools/lldb-server/TestLldbGdbServer.py
+++ b/lldb/test/API/tools/lldb-server/TestLldbGdbServer.py
@@ -390,12 +390,14 @@ def Hg_switches_to_3_threads(self, pass_pid=False):
             self.assertEqual(int(context.get("thread_id"), 16), thread)
 
     @expectedFailureAll(oslist=["windows"]) # expect 4 threads
+    @skipIf(compiler="clang", compiler_version=['<', '11.0'])
     def test_Hg_switches_to_3_threads_launch(self):
         self.build()
         self.set_inferior_startup_launch()
         self.Hg_switches_to_3_threads()
 
     @expectedFailureAll(oslist=["windows"]) # expecting one more thread
+    @skipIf(compiler="clang", compiler_version=['<', '11.0'])
     def test_Hg_switches_to_3_threads_attach(self):
         self.build()
         self.set_inferior_startup_attach()
@@ -403,6 +405,7 @@ def test_Hg_switches_to_3_threads_attach(self):
 
     @expectedFailureAll(oslist=["windows"]) # expect 4 threads
     @add_test_categories(["llgs"])
+    @skipIf(compiler="clang", compiler_version=['<', '11.0'])
     def test_Hg_switches_to_3_threads_attach_pass_correct_pid(self):
         self.build()
         self.set_inferior_startup_attach()


        


More information about the lldb-commits mailing list