Skip to content

Commit 6dde7bb

Browse files
authored
tests: use latest wasmtime for testing (#327)
This patch enables using latest version of wasmtime for testing. This should also make it possible to running tests for wasm32-wasi-threads in the future.
1 parent c891cd2 commit 6dde7bb

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
0-cache-macos-latest
4040
if: matrix.os == 'macos-latest'
4141
- name: Install wasmtime for tests
42-
run: curl -f -L --retry 5 https://wasmtime.dev/install.sh | bash -s -- --version v2.0.2
42+
run: curl -f -L --retry 5 https://wasmtime.dev/install.sh | bash -s -- --version v8.0.1
4343
- uses: actions/checkout@v3
4444
with:
4545
fetch-depth: 0

tests/general/abort.c.stderr.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ Error: failed to run main module `abort.c.---.wasm`
22

33
Caused by:
44
0: failed to invoke command default
5-
1: wasm trap: wasm `unreachable` instruction executed
6-
wasm backtrace:
5+
1: error while executing at wasm backtrace:
6+
2: wasm trap: wasm `unreachable` instruction executed
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -euo pipefail
33

44
cat \
55
| sed -e 's/main module `abort\.c\.[^`]*\.wasm`/main module `abort.c.---.wasm`/' \
6-
| sed -e 's/source location: @[[:xdigit:]]*$/source location: @----/' \
7-
| head -n 6
6+
| sed -E '/0x[[:xdigit:]]+/d'

tests/general/assert-fail.c.stderr.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ Error: failed to run main module `assert-fail.c.---.wasm`
33

44
Caused by:
55
0: failed to invoke command default
6-
1: wasm trap: wasm `unreachable` instruction executed
7-
wasm backtrace:
6+
1: error while executing at wasm backtrace:
7+
2: wasm trap: wasm `unreachable` instruction executed
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -euo pipefail
33

44
cat \
55
| sed -e 's/main module `assert-fail\.c\.[^`]*\.wasm`/main module `assert-fail.c.---.wasm`/' \
6-
| sed -e 's/source location: @[[:xdigit:]]*$/source location: @----/' \
7-
| head -n 7
6+
| sed -E '/0x[[:xdigit:]]+/d'

0 commit comments

Comments
 (0)