Index: packages/Python/lldbsuite/test/lldbutil.py =================================================================== --- packages/Python/lldbsuite/test/lldbutil.py +++ packages/Python/lldbsuite/test/lldbutil.py @@ -778,7 +778,18 @@ threads = get_threads_stopped_at_breakpoint( process, bkpt) + # Check that we stopped at our breakpoint. Try to separate failure reasons: + test.assertNotEqual(process.GetState(), lldb.eStateExited, "Process exited before stopping at breakpoint.") + if len(threads) == 0: + (bkpts, crashed, signaled) = ([], [], []) + sort_stopped_threads(process, + breakpoint_threads = bkpts, + crashed_threads = crashed, + signal_threads = signaled) + test.fail("Stopped for another reason: Breakpoint: %d Signaled: %d Crashed: %d"%(len(bkpts), len(signaled), len(crashed))) + test.assertTrue(len(threads) == 1, "Expected 1 thread to stop at breakpoint, %d did."%(len(threads))) + thread = threads[0] return (target, process, thread, bkpt)