Skip to content

Commit f55e36b

Browse files
committed
修正
1 parent 01fb3ba commit f55e36b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test_with_llvm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ def test(debugger, command, result, internal_dict):
2020

2121
if state == lldb.eStateExited:
2222
exit_status = process.GetExitStatus()
23+
debugger.HandleCommand(f"exit {exit_status}")
2324
sys.exit(exit_status)
2425
elif state == lldb.eStateStopped:
2526
thread = process.GetSelectedThread()
2627
if thread.GetStopReason() == lldb.eStopReasonExec:
2728
process.Continue()
2829
continue
2930
debugger.HandleCommand("bt all")
31+
debugger.HandleCommand("exit 1")
3032
sys.exit(1)
3133

3234

0 commit comments

Comments
 (0)