From e55159566a5621a0f1116eda3c521c9f75bd9ed0 Mon Sep 17 00:00:00 2001 From: Christoph Herzog Date: Mon, 16 Sep 2024 09:49:24 +0200 Subject: [PATCH] tests: Feature gate test --- lib/wasix/src/runners/wasi.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/wasix/src/runners/wasi.rs b/lib/wasix/src/runners/wasi.rs index 9837b4a2102..f69f7e9ae1d 100644 --- a/lib/wasix/src/runners/wasi.rs +++ b/lib/wasix/src/runners/wasi.rs @@ -449,6 +449,7 @@ mod tests { assert_sync::(); } + #[cfg(all(feature = "host-fs", feature = "sys"))] #[tokio::test] async fn test_volume_mount_without_webcs() { use std::sync::Arc; @@ -484,6 +485,7 @@ mod tests { fs.read_dir(&std::path::Path::new("/host")).unwrap(); } + #[cfg(all(feature = "host-fs", feature = "sys"))] #[tokio::test] async fn test_volume_mount_with_webcs() { use std::sync::Arc;