From 40f3d1307cfd66e6dc1a921eec42559a6691b393 Mon Sep 17 00:00:00 2001 From: Alex Langford Date: Tue, 5 Nov 2019 14:11:24 -0800 Subject: [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. --- .../lldbsuite/test/functionalities/mtc/simple/TestMTCSimple.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/mtc') 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 e530c47d2d3..e3751e02c45 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"]) -- cgit v1.2.3