commit 3c708b19fea5e855197c6f3f8130a39a903b3f77 (tree)
parent 2b01764d86d8c1b808a1ffb5913442e8f055762f
Author: Andrew Kelley <andrew@ziglang.org>
Date: Wed, 14 Jan 2026 23:34:07 -0800
disable test due to wasmtime bug
tracked by #20747
Diffstat:
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/lib/std/Io/Threaded/test.zig b/lib/std/Io/Threaded/test.zig
@@ -206,6 +206,11 @@ test "cancel blocked read from pipe" {
}
test "memory mapping fallback" {
+ if (builtin.os.tag == .wasi and builtin.link_libc) {
+ // https://github.com/ziglang/zig/issues/20747 (open fd does not have write permission)
+ return error.SkipZigTest;
+ }
+
var threaded: std.Io.Threaded = .init(std.testing.allocator, .{
.argv0 = .empty,
.environ = .empty,
diff --git a/lib/std/Io/test.zig b/lib/std/Io/test.zig
@@ -595,6 +595,10 @@ test "randomSecure" {
test "memory mapping" {
if (builtin.cpu.arch == .hexagon) return error.SkipZigTest; // mmap returned EINVAL
+ if (builtin.os.tag == .wasi and builtin.link_libc) {
+ // https://github.com/ziglang/zig/issues/20747 (open fd does not have write permission)
+ return error.SkipZigTest;
+ }
const io = testing.io;