Skip the stack tests on Windows.

As Windows uses the native fiber implementation, the stack tests should be
ignored on Windows as the implementation intentionally errors when handing out
stacks.
This commit is contained in:
Peter Huene
2021-02-11 11:05:16 -08:00
parent 5b2f8789b2
commit a82f1a323f

View File

@@ -1557,7 +1557,7 @@ mod test {
Ok(())
}
#[cfg(target_pointer_width = "64")]
#[cfg(all(unix, target_pointer_width = "64"))]
#[test]
fn test_stack_pool() -> Result<(), String> {
let pool = StackPool::new(
@@ -1680,7 +1680,7 @@ mod test {
}
#[cfg_attr(target_arch = "aarch64", ignore)] // https://github.com/bytecodealliance/wasmtime/pull/2518#issuecomment-747280133
#[cfg(unix)]
#[cfg(all(unix, target_pointer_width = "64"))]
#[test]
fn test_stack_zeroed() -> Result<(), String> {
let allocator = PoolingInstanceAllocator::new(