From f55e36bd60b46be2609a9e43aa16dea09ca85cf9 Mon Sep 17 00:00:00 2001 From: melpon Date: Sun, 3 Nov 2024 01:58:41 +0900 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_with_llvm.py | 2 ++ 1 file changed, 2 insertions(+) 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)