[Lldb-commits] [lldb] 40f3d13 - [TestMTCSimple] Disable the test if you don't have libMTC
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Tue Nov 5 14:12:49 PST 2019
Author: Alex Langford
Date: 2019-11-05T14:11:26-08:00
New Revision: 40f3d1307cfd66e6dc1a921eec42559a6691b393
URL: https://github.com/llvm/llvm-project/commit/40f3d1307cfd66e6dc1a921eec42559a6691b393
DIFF: https://github.com/llvm/llvm-project/commit/40f3d1307cfd66e6dc1a921eec42559a6691b393.diff
LOG: [TestMTCSimple] Disable the test if you don't have libMTC
If you are running on macOS and have the CommandLineTools installed of
Xcode, this test will fail because CommandLineTools doesn't ship with
libMainThreadChecker. Skip the test if you don't have it installed.
Added:
Modified:
lldb/packages/Python/lldbsuite/test/functionalities/mtc/simple/TestMTCSimple.py
Removed:
################################################################################
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/mtc/simple/TestMTCSimple.py b/lldb/packages/Python/lldbsuite/test/functionalities/mtc/simple/TestMTCSimple.py
index e530c47d2d39..e3751e02c45f 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/mtc/simple/TestMTCSimple.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/mtc/simple/TestMTCSimple.py
@@ -17,12 +17,16 @@ class MTCSimpleTestCase(TestBase):
@skipUnlessDarwin
def test(self):
self.mtc_dylib_path = findMainThreadCheckerDylib()
- self.assertTrue(self.mtc_dylib_path != "")
+ if self.mtc_dylib_path == "":
+ self.skipTest("This test requires libMainThreadChecker.dylib")
+
self.build()
self.mtc_tests()
@skipIf(archs=['i386'])
def mtc_tests(self):
+ self.assertTrue(self.mtc_dylib_path != "")
+
# Load the test
exe = self.getBuildArtifact("a.out")
self.expect("file " + exe, patterns=["Current executable set to .*a.out"])
More information about the lldb-commits
mailing list