Rollup merge of #148901 - sardok:disable_rustdoc_test_builder_sgx, r=GuillaumeGomez

Disable rustdoc-test-builder test partially for SGX target.

The `rustdoc-test-builder` test started to fail after https://github.com/rust-lang/rust/pull/148608 for SGX target. The reason is, sgx binary can not be executed directly so rustdoc fails to execute passed `--test-builder` binary. This PR simply ignores the success part just like it is ignore for `wasm` target.
This commit is contained in:
Stuart Cook 2025-11-14 13:14:06 +11:00 committed by GitHub
commit 79e10134cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,7 +25,10 @@ fn main() {
// Some targets (for example wasm) cannot execute doctests directly even with a runner,
// so only exercise the success path when the target can run on the host.
if target().contains("wasm") || std::env::var_os("REMOTE_TEST_CLIENT").is_some() {
if target().contains("wasm")
|| target().contains("sgx")
|| std::env::var_os("REMOTE_TEST_CLIENT").is_some()
{
return;
}