[Lldb-commits] [lldb] d0789e6 - Assert launch success in run_to_breakpoint_do_run

Vedant Kumar via lldb-commits lldb-commits at lists.llvm.org
Tue Dec 10 11:19:34 PST 2019


Author: Vedant Kumar
Date: 2019-12-10T11:19:17-08:00
New Revision: d0789e6346e489cd84b37ec58964feb0db015de7

URL: https://github.com/llvm/llvm-project/commit/d0789e6346e489cd84b37ec58964feb0db015de7
DIFF: https://github.com/llvm/llvm-project/commit/d0789e6346e489cd84b37ec58964feb0db015de7.diff

LOG: Assert launch success in run_to_breakpoint_do_run

Added: 
    

Modified: 
    lldb/packages/Python/lldbsuite/test/lldbutil.py

Removed: 
    


################################################################################
diff  --git a/lldb/packages/Python/lldbsuite/test/lldbutil.py b/lldb/packages/Python/lldbsuite/test/lldbutil.py
index 05d0c9f9d3e9..9deaed5cf50d 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbutil.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbutil.py
@@ -778,6 +778,8 @@ def run_to_breakpoint_do_run(test, target, bkpt, launch_info = None,
     test.assertTrue(process,
                     "Could not create a valid process for %s: %s"%(target.GetExecutable().GetFilename(),
                     error.GetCString()))
+    test.assertFalse(error.Fail(),
+                     "Process launch failed: %s" % (error.GetCString()))
 
     # Frame #0 should be at our breakpoint.
     threads = get_threads_stopped_at_breakpoint(


        


More information about the lldb-commits mailing list