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
This commit is contained in:
Jim Ingham 2018-01-12 01:12:45 +00:00
parent 7ed293e448
commit e38b018df4
1 changed files with 3 additions and 1 deletions

View File

@ -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")