Skip to content

Commit a2bcb93

Browse files
committed
[lldb] Attempt to fix TestCompletion on macos
Macos will automatically load dependent modules when creating a target, resulting in more modules than the test expects.
1 parent 1ee02f9 commit a2bcb93

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lldb/test/API/functionalities/completion/TestCompletion.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,8 +909,10 @@ def test_ambiguous_subcommand(self):
909909

910910
def test_shlib_name(self):
911911
self.build()
912-
target = self.dbg.CreateTarget(self.getBuildArtifact("a.out"))
913-
self.assertTrue(target, VALID_TARGET)
912+
error = lldb.SBError()
913+
# Create a target, but don't load dependent modules
914+
target = self.dbg.CreateTarget(self.getBuildArtifact("a.out"), None, None, False, error)
915+
self.assertSuccess(error)
914916
self.registerSharedLibrariesWithTarget(target, ["shared"])
915917

916918
basenames = []

0 commit comments

Comments
 (0)