From 87f17f3ccb69e9827562522ae1a38f84d2ba998a Mon Sep 17 00:00:00 2001 From: Nicola Krumschmidt Date: Wed, 4 Sep 2024 02:18:32 +0200 Subject: Fix std tests for wasm32-wasip2 target --- library/std/src/process.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'library/std/src/process.rs') diff --git a/library/std/src/process.rs b/library/std/src/process.rs index c84a5c65263..f24fe353e55 100644 --- a/library/std/src/process.rs +++ b/library/std/src/process.rs @@ -148,7 +148,15 @@ #![stable(feature = "process", since = "1.0.0")] #![deny(unsafe_op_in_unsafe_fn)] -#[cfg(all(test, not(any(target_os = "emscripten", target_env = "sgx", target_os = "xous"))))] +#[cfg(all( + test, + not(any( + target_os = "emscripten", + target_os = "wasi", + target_env = "sgx", + target_os = "xous" + )) +))] mod tests; use crate::convert::Infallible; -- cgit 1.4.1-3-g733a5