test suite: cap-std-sync test environment does not support fdflags sync

This commit is contained in:
Pat Hickey
2021-02-01 14:25:42 -08:00
parent cde252c59b
commit 40e541bfc3
3 changed files with 45 additions and 6 deletions

View File

@@ -42,6 +42,9 @@ pub fn instantiate(data: &[u8], bin_name: &str, workspace: Option<&Path>) -> any
builder = builder.env("ERRNO_MODE_UNIX", "1")?;
}
// cap-std-sync does not yet support the sync family of fdflags
builder = builder.env("NO_FDFLAGS_SYNC_SUPPORT", "1")?;
let wasi = wasmtime_wasi::Wasi::new(&store, builder.build()?);
let mut linker = Linker::new(&store);