diff options
author | Alex Langford <apl@fb.com> | 2019-11-05 14:11:24 -0800 |
---|---|---|
committer | Alex Langford <apl@fb.com> | 2019-11-05 14:11:26 -0800 |
commit | 40f3d1307cfd66e6dc1a921eec42559a6691b393 (patch) | |
tree | 7af84d0850ceeeabaf7782b19fc4026257b7c5e0 /lldb/packages/Python/lldbsuite | |
parent | 39573daa76f23b93bda1437157cf78fb3d1003e2 (diff) | |
download | bcm5719-llvm-40f3d1307cfd66e6dc1a921eec42559a6691b393.tar.gz bcm5719-llvm-40f3d1307cfd66e6dc1a921eec42559a6691b393.zip |
[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.
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/mtc/simple/TestMTCSimple.py | 6 |
1 files changed, 5 insertions, 1 deletions
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"]) |