From 4d8aab6230204f818f598b29ff37e21d85d0c908 Mon Sep 17 00:00:00 2001 From: melpon Date: Sun, 3 Nov 2024 02:07:50 +0900 Subject: [PATCH] =?UTF-8?q?=E8=90=BD=E3=81=A1=E3=81=AA=E3=81=91=E3=82=8C?= =?UTF-8?q?=E3=81=B0=20exit=200=20=E3=81=AB=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run.py | 6 +++++- test_with_llvm.py | 6 ++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/run.py b/run.py index e054a37..3bc6a79 100644 --- a/run.py +++ b/run.py @@ -226,7 +226,11 @@ def main(): args.local_sora_cpp_sdk_args, ) - configuration = "Debug" if args.debug else "Release" + configuration = "Release" + if args.debug: + configuration = "Debug" + if args.relwithdebinfo: + configuration = "RelWithDebInfo" webrtc_platform = get_webrtc_platform(platform) webrtc_info = get_webrtc_info( diff --git a/test_with_llvm.py b/test_with_llvm.py index e12c446..77f28c6 100644 --- a/test_with_llvm.py +++ b/test_with_llvm.py @@ -20,8 +20,10 @@ 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) + # debugger.HandleCommand(f"exit {exit_status}") + # sys.exit(exit_status) + debugger.HandleCommand("exit 0") + sys.exit(0) elif state == lldb.eStateStopped: thread = process.GetSelectedThread() if thread.GetStopReason() == lldb.eStopReasonExec: