You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tests annotated with `#[cfg_attr(wasi_runner, ignore = "...")]` are skipped when running integration tests against a WASI binary via wasmtime. This document tracks the reasons so that gaps in WASI support are visible in one place.
4
+
5
+
To find all annotated tests: `grep -rn 'wasi_runner, ignore' tests/`
The WASI guest only sees directories explicitly mapped with `--dir`. Host paths like `/proc`, `/sys`, and `/dev` are not accessible. Affected tests include those that read `/proc/version`, `/proc/modules`, `/proc/cpuinfo`, `/proc/self/mem`, `/sys/kernel/profiling`, `/dev/null`, `/dev/zero`, `/dev/full`, and tests that rely on anonymous pipes or Linux-specific I/O error paths.
14
+
15
+
## WASI: argv/filenames must be valid UTF-8
16
+
17
+
The WASI specification requires that argv entries and filenames are valid UTF-8. Tests that pass non-UTF-8 bytes as arguments or create files with non-UTF-8 names cannot run under WASI.
18
+
19
+
## WASI: no FIFO/mkfifo support
20
+
21
+
WASI does not support creating or opening FIFOs (named pipes). Tests that use `mkfifo` are skipped.
22
+
23
+
## WASI: no pipe/signal support
24
+
25
+
WASI does not support Unix signals or pipe creation. Tests that rely on `SIGPIPE`, broken pipe detection, or pipe-based I/O are skipped.
26
+
27
+
## WASI: no subprocess spawning
28
+
29
+
WASI does not support spawning child processes. Tests that shell out to other commands or invoke a second binary are skipped.
30
+
31
+
## WASI: stdin file position not preserved through wasmtime
32
+
33
+
When stdin is a seekable file, wasmtime does not preserve the file position between the host and guest. Tests that validate stdin offset behavior after `head` reads are skipped.
0 commit comments