From e38b018df4c4524cda9f61cedfe5a8ab551c6e93 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Fri, 12 Jan 2018 01:12:45 +0000 Subject: Print the SBDebugger.CreateTarget error message. This is failing on the bot but not locally. Maybe the error message will tell us why. llvm-svn: 322338 --- .../lldbsuite/test/macosx/find-app-in-bundle/TestFindAppInBundle.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lldb/packages/Python') 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") -- cgit v1.2.3