[CI][Github] Do not fail premerge job
[llvm-project.git] / lldb / test / API / functionalities / pre_run_dylibs / TestPreRunDylibs.py
bloba21ec1eb69f9cf2d554a499bac850840245fb0ac
1 import lldb
2 from lldbsuite.test.lldbtest import *
3 import lldbsuite.test.lldbutil as lldbutil
4 from lldbsuite.test.decorators import *
7 class TestPreRunLibraries(TestBase):
8 NO_DEBUG_INFO_TESTCASE = True
10 @skipIf(oslist=no_match(["darwin", "macos"]))
11 def test(self):
12 """Test that we find directly linked dylib pre-run."""
14 self.build()
15 target = self.dbg.CreateTarget(self.getBuildArtifact("a.out"))
16 self.assertTrue(target, VALID_TARGET)
18 # I don't know what the name of a shared library
19 # extension is in general, so instead of using FindModule,
20 # I'll iterate through the module and do a basename match.
21 found_it = False
22 for module in target.modules:
23 file_name = module.GetFileSpec().GetFilename()
24 if file_name.find("unlikely_name") != -1:
25 found_it = True
26 break
28 self.assertTrue(
29 found_it, "Couldn't find unlikely_to_occur_name in loaded libraries."