diff --git a/test_with_llvm.py b/test_with_llvm.py index 8e9dc36..e12c446 100644 --- a/test_with_llvm.py +++ b/test_with_llvm.py @@ -20,6 +20,7 @@ def test(debugger, command, result, internal_dict): if state == lldb.eStateExited: exit_status = process.GetExitStatus() + debugger.HandleCommand(f"exit {exit_status}") sys.exit(exit_status) elif state == lldb.eStateStopped: thread = process.GetSelectedThread() @@ -27,6 +28,7 @@ def test(debugger, command, result, internal_dict): process.Continue() continue debugger.HandleCommand("bt all") + debugger.HandleCommand("exit 1") sys.exit(1)