node/test/wasi
cjihrig 0582c51754
test: fix wasi/test-return-on-exit on 32-bit systems
Starting with the V8 8.8 update, this test has been regularly
crashing with an out of memory error on 32-bit Windows. The issue
has been narrowed down to a function not being bound. This seems
like a V8 bug, but at least it seems that we can work around it.

Fixes: https://github.com/nodejs/node/issues/37374

PR-URL: https://github.com/nodejs/node/pull/37615
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
2021-03-16 08:55:22 -04:00
..
c test: add wasi readdir() test 2020-09-17 18:57:38 +00:00
wasm test: add wasi readdir() test 2020-09-17 18:57:38 +00:00
Makefile
README.md
test-return-on-exit.js test: fix wasi/test-return-on-exit on 32-bit systems 2021-03-16 08:55:22 -04:00
test-wasi-initialize-validation.js wasi: add reactor support 2020-06-29 09:52:09 -05:00
test-wasi-not-started.js wasi: drop --experimental-wasm-bigint requirement 2020-10-18 20:17:43 +02:00
test-wasi-options-validation.js wasi: allow WASI stdio to be configured 2020-05-30 04:28:02 +02:00
test-wasi-require-flag.js wasi: require CLI flag to require() wasi module 2019-12-17 06:02:04 +01:00
test-wasi-start-validation.js wasi: add reactor support 2020-06-29 09:52:09 -05:00
test-wasi-stdio.js wasi: drop --experimental-wasm-bigint requirement 2020-10-18 20:17:43 +02:00
test-wasi-symlinks.js wasi: drop --experimental-wasm-bigint requirement 2020-10-18 20:17:43 +02:00
test-wasi-worker-terminate.js wasi,worker: handle termination exception 2020-05-23 18:59:44 +02:00
test-wasi.js wasi: drop --experimental-wasm-bigint requirement 2020-10-18 20:17:43 +02:00
testcfg.py
wasi.status

WASI Tests

Compile with clang and wasm32-wasi target. The clang version used must be built with wasi-libc. You can specify the location for clang and the sysroot if needed when running make:

$ make CC=/usr/local/opt/llvm/bin/clang SYSROOT=/path/to/wasi-libc/sysroot