]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/fs.rs
SGX target: fix std unit tests
[rust.git] / src / libstd / fs.rs
index 8c3d0da0a7e405836a723ff096c7b5aa2b9560c3..dfff44b88ea784e3598285ca9555f18db0d5255c 100644 (file)
@@ -2095,7 +2095,7 @@ fn as_inner_mut(&mut self) -> &mut fs_imp::DirBuilder {
     }
 }
 
-#[cfg(all(test, not(any(target_os = "cloudabi", target_os = "emscripten"))))]
+#[cfg(all(test, not(any(target_os = "cloudabi", target_os = "emscripten", target_env = "sgx"))))]
 mod tests {
     use crate::io::prelude::*;