]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/net/udp.rs
SGX target: fix std unit tests
[rust.git] / src / libstd / net / udp.rs
index edc9d665444a035ebe396fe1c08bf40f5f6f627f..951f385fb3ea52c9da4952185d73f8330d15cb81 100644 (file)
@@ -806,7 +806,7 @@ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
     }
 }
 
-#[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::ErrorKind;
     use crate::net::*;