diff options
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/macosx/find-app-in-bundle/TestFindAppInBundle.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/macosx/find-app-in-bundle/TestFindAppInBundle.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/macosx/find-app-in-bundle/TestFindAppInBundle.py b/lldb/packages/Python/lldbsuite/test/macosx/find-app-in-bundle/TestFindAppInBundle.py index 8c8e400b068..90454f897c3 100644 --- a/lldb/packages/Python/lldbsuite/test/macosx/find-app-in-bundle/TestFindAppInBundle.py +++ b/lldb/packages/Python/lldbsuite/test/macosx/find-app-in-bundle/TestFindAppInBundle.py @@ -39,7 +39,9 @@ class FindAppInMacOSAppBundle(TestBase): # It optionally takes an SBLaunchOption argument if you want to pass # arguments or environment variables. exe = os.path.join(os.getcwd(), "TestApp.app") - target = self.dbg.CreateTarget(exe) + error = lldb.SBError() + target = self.dbg.CreateTarget(exe, None, None, False, error) + self.assertTrue(error.Success(), "Could not create target: %s"%(error.GetCString())) self.assertTrue(target.IsValid(), "Target: TestApp.app is not valid.") exe_module_spec = target.GetExecutable() self.assertTrue(exe_module_spec.GetFilename(), "TestApp") |