summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2018-01-12 01:12:45 +0000
committerJim Ingham <jingham@apple.com>2018-01-12 01:12:45 +0000
commite38b018df4c4524cda9f61cedfe5a8ab551c6e93 (patch)
tree166184b7d8701e2963fff1ade7d6fad5a5abe988 /lldb/packages/Python/lldbsuite
parent7ed293e448e8be862ea8baefba919722c7502a08 (diff)
downloadbcm5719-llvm-e38b018df4c4524cda9f61cedfe5a8ab551c6e93.tar.gz
bcm5719-llvm-e38b018df4c4524cda9f61cedfe5a8ab551c6e93.zip
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
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r--lldb/packages/Python/lldbsuite/test/macosx/find-app-in-bundle/TestFindAppInBundle.py4
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")
OpenPOWER on IntegriCloud