Enable compiling tests in non-debug builds
All checks were successful
CI / ci (MinSizeRel, ubuntu-latest) (push) Successful in 34s
CI / ci (Release, ubuntu-latest) (push) Successful in 32s
CI / ci (RelWithDebInfo, ubuntu-latest) (push) Successful in 37s
CI / ci (Debug, ubuntu-latest) (push) Successful in 2m48s

This commit is contained in:
David Gonzalez Martin 2025-06-05 04:08:12 -06:00
parent eb88c61f88
commit fb54aec7c9

View File

@ -599,7 +599,6 @@ void entry_point(Slice<char* const> arguments, Slice<char* const> envp)
.silent = true, .silent = true,
}); });
#if BB_DEBUG == 0 || BB_CI == 0
for (auto name: names) for (auto name: names)
{ {
BuildMode build_mode = BuildMode::debug_none; BuildMode build_mode = BuildMode::debug_none;
@ -621,14 +620,13 @@ void entry_point(Slice<char* const> arguments, Slice<char* const> envp)
auto success = execution.termination_kind == TerminationKind::exit && execution.termination_code == 0; auto success = execution.termination_kind == TerminationKind::exit && execution.termination_code == 0;
if (!success) if (!success)
{ {
print(string_literal("Self-hosted test failed: ")); print(string_literal("Self-hosted test failed to compile: "));
print(name); print(name);
print(string_literal("\n")); print(string_literal("\n"));
bb_fail(); bb_fail();
} }
break; break;
} }
#endif
} }
} }
} break; } break;