Skip to content

Commit f7c39d2

Browse files
authored
Expose /dev to the WASI guest for testing purposes (GH-160856)
Discovered by running the test suite from a release build which can map all of `/` into the WASI guest (unlike when running the test suite in a source checkout).
1 parent 8e605fe commit f7c39d2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Platforms/WASI/__main__.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ def main():
2323
"--argv0 {ARGV0} "
2424
# Map the checkout to / to load the stdlib from /Lib.
2525
"--dir {CHECKOUT}::/ "
26+
# For various I/O-related tests.
27+
"--dir /dev "
2628
# Flags involving --optimize, --codegen, --debug, --wasm, and --wasi can be kept
2729
# in a config file.
2830
# We are using such a file to act as defaults in case a user wants to override

0 commit comments

Comments
 (0)