diff --git a/library/std/tests/create_dir_all_bare.rs b/library/std/tests/create_dir_all_bare.rs index 905a62f920af..fe789323f97c 100644 --- a/library/std/tests/create_dir_all_bare.rs +++ b/library/std/tests/create_dir_all_bare.rs @@ -1,3 +1,5 @@ +#![cfg(all(test, not(any(target_os = "emscripten", target_env = "sgx"))))] + //! Note that this test changes the current directory so //! should not be in the same process as other tests. use std::env;