diff options
| author | Nicola Krumschmidt <git@nkcom.de> | 2024-09-04 02:18:32 +0200 |
|---|---|---|
| committer | Nicola Krumschmidt <git@nkcom.de> | 2024-09-29 04:48:13 +0200 |
| commit | 87f17f3ccb69e9827562522ae1a38f84d2ba998a (patch) | |
| tree | d9ca03f59b55b85e2ea912e0bb6d6349305ff3b2 /library/std/src/net/udp.rs | |
| parent | 3b11c82a3d625a01dd5f7b91785374103eb41589 (diff) | |
| download | rust-87f17f3ccb69e9827562522ae1a38f84d2ba998a.tar.gz rust-87f17f3ccb69e9827562522ae1a38f84d2ba998a.zip | |
Fix std tests for wasm32-wasip2 target
Diffstat (limited to 'library/std/src/net/udp.rs')
| -rw-r--r-- | library/std/src/net/udp.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/library/std/src/net/udp.rs b/library/std/src/net/udp.rs index 8c9e31f9c15..8954d9601b7 100644 --- a/library/std/src/net/udp.rs +++ b/library/std/src/net/udp.rs @@ -1,4 +1,12 @@ -#[cfg(all(test, not(any(target_os = "emscripten", target_env = "sgx", target_os = "xous"))))] +#[cfg(all( + test, + not(any( + target_os = "emscripten", + all(target_os = "wasi", target_env = "p1"), + target_env = "sgx", + target_os = "xous" + )) +))] mod tests; use crate::fmt; |
