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:
commit
79e10134cf
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue