Skip to content

Commit 315d554

Browse files
authored
Rollup merge of rust-lang#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 rust-lang#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.
2 parents 2b87ba5 + a40c3e5 commit 315d554

File tree

1 file changed

+4
-1
lines changed
  • tests/run-make/rustdoc-test-builder

1 file changed

+4
-1
lines changed

tests/run-make/rustdoc-test-builder/rmake.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ fn main() {
2525

2626
// Some targets (for example wasm) cannot execute doctests directly even with a runner,
2727
// so only exercise the success path when the target can run on the host.
28-
if target().contains("wasm") || std::env::var_os("REMOTE_TEST_CLIENT").is_some() {
28+
if target().contains("wasm")
29+
|| target().contains("sgx")
30+
|| std::env::var_os("REMOTE_TEST_CLIENT").is_some()
31+
{
2932
return;
3033
}
3134

0 commit comments

Comments
 (0)