[Lldb-commits] [lldb] r322338 - Print the SBDebugger.CreateTarget error message.

Jim Ingham via lldb-commits lldb-commits at lists.llvm.org
Thu Jan 11 17:12:45 PST 2018


Author: jingham
Date: Thu Jan 11 17:12:45 2018
New Revision: 322338

URL: http://llvm.org/viewvc/llvm-project?rev=322338&view=rev
Log:
Print the SBDebugger.CreateTarget error message.

This is failing on the bot but not locally.  Maybe
the error message will tell us why.

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/macosx/find-app-in-bundle/TestFindAppInBundle.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/macosx/find-app-in-bundle/TestFindAppInBundle.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/macosx/find-app-in-bundle/TestFindAppInBundle.py?rev=322338&r1=322337&r2=322338&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/macosx/find-app-in-bundle/TestFindAppInBundle.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/macosx/find-app-in-bundle/TestFindAppInBundle.py Thu Jan 11 17:12:45 2018
@@ -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")




More information about the lldb-commits mailing list