update wasi-libc and fix out-of-date tests (#403)

This updates the `wasi-libc` submodule to point to `main` and also:

- update tests/testcase.sh to use new wasm32-wasip2 target name
- update various tests/**/*.expected files to match Wasmtime output

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
pull/407/head
Joel Dice 9 months ago committed by GitHub
parent a50a641f4b
commit a7b2182949
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1 +1 @@
Subproject commit c9c7d0616e0f7fe4d0d0fa54372b6d1f5689f91d
Subproject commit d03829489904d38c624f6de9983190f1e5e7c9c5

@ -0,0 +1,6 @@
Error: failed to run main module `abort.c.---.wasm`
Caused by:
0: failed to invoke command default
1: error while executing at wasm backtrace:
2: wasm trap: wasm `unreachable` instruction executed

@ -0,0 +1,6 @@
Error: failed to run main module `abort.c.---.wasm`
Caused by:
0: failed to invoke `run` function
1: error while executing at wasm backtrace:
2: wasm trap: wasm `unreachable` instruction executed

@ -0,0 +1,7 @@
Assertion failed: false (assert-fail.c: main: 5)
Error: failed to run main module `assert-fail.c.---.wasm`
Caused by:
0: failed to invoke `run` function
1: error while executing at wasm backtrace:
2: wasm trap: wasm `unreachable` instruction executed

@ -0,0 +1,6 @@
raising SIGABRT...
Program received fatal signal: Aborted
Error: failed to run main module `sigabrt.c.---.wasm`
Caused by:
0: failed to invoke `run` function

@ -44,7 +44,7 @@ if [ "$runwasi" == "" ]; then
exit 0
fi
if [ "$target" == "wasm32-wasi-preview2" -a -n "$adapter" -a -n "$wasm_tools" ]; then
if [ "$target" == "wasm32-wasip2" -a -n "$adapter" -a -n "$wasm_tools" ]; then
"$wasm_tools" component new --adapt "$adapter" "$wasm" -o "$wasm"
run_args="--wasm component-model"
fi

Loading…
Cancel
Save