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"]))
12 """Test that we find directly linked dylib pre-run."""
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.
22 for module
in target
.modules
:
23 file_name
= module
.GetFileSpec().GetFilename()
24 if file_name
.find("unlikely_name") != -1:
29 found_it
, "Couldn't find unlikely_to_occur_name in loaded libraries."