Skip to content

Commit dbd0eea

Browse files
committed
fix(cli): suppress runtime abort noise in script runner
1 parent c4cfb4c commit dbd0eea

2 files changed

Lines changed: 12 additions & 9 deletions

File tree

src/commands/run/RunProcess.cpp

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,8 @@ namespace vix::commands::RunCommand::detail
804804

805805
if (has("terminate called after throwing an instance of"))
806806
return true;
807+
if (has("terminate called without an active exception"))
808+
return true;
807809
if (has("terminating with uncaught exception"))
808810
return true;
809811
if (has("libc++abi: terminating with uncaught exception"))
@@ -1052,20 +1054,20 @@ namespace vix::commands::RunCommand::detail
10521054

10531055
std::string filtered;
10541056

1057+
printable = sanitizer.filter_for_print(printable);
1058+
1059+
if (!printable.empty())
1060+
printable = uncaught.filter_for_print(printable);
1061+
1062+
if (printable.empty())
1063+
return;
1064+
10551065
if (passthroughRuntime)
10561066
{
10571067
filtered = printable;
10581068
}
10591069
else
10601070
{
1061-
printable = sanitizer.filter_for_print(printable);
1062-
1063-
if (!printable.empty())
1064-
printable = uncaught.filter_for_print(printable);
1065-
1066-
if (printable.empty())
1067-
return;
1068-
10691071
filtered = runtimeFilter.process(printable);
10701072
}
10711073

src/commands/run/detail/DirectScriptRunner.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,8 @@ namespace vix::commands::RunCommand::detail
529529
"Running script...",
530530
plan.passthroughRuntime,
531531
plan.effectiveTimeoutSec,
532-
opt.enableSanitizers || opt.enableUbsanOnly);
532+
opt.enableSanitizers || opt.enableUbsanOnly,
533+
false);
533534

534535
handle_runtime_exit_code(run.exitCode, "run", run.failureHandled);
535536
return run.exitCode;

0 commit comments

Comments
 (0)