Skip to content

Commit

Permalink
update tests to match new wasi-libc
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Dice <[email protected]>
  • Loading branch information
dicej committed Mar 28, 2024
1 parent 6f59284 commit ced071e
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 1 deletion.
6 changes: 6 additions & 0 deletions tests/general/abort.c.wasm32-wasi.stderr.expected
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions tests/general/abort.c.wasm32-wasip2.stderr.expected
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions tests/general/assert-fail.c.wasm32-wasip2.stderr.expected
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions tests/general/sigabrt.c.wasm32-wasip2.stderr.expected
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tests/testcase.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ced071e

Please sign in to comment.