diff options
author | Chris O'Hara <cohara87@gmail.com> | 2023-06-14 12:16:38 +1000 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2023-06-29 15:35:27 +0000 |
commit | da5d8fdd0c8963ca8f355088bf810c030eb7da27 (patch) | |
tree | 94e8620a437251d4ed817626a1923495e4ff1419 | |
parent | 411c99671a6c6b6f59abe81d872db6daf2e1738a (diff) | |
download | go-da5d8fdd0c8963ca8f355088bf810c030eb7da27.tar.gz go-da5d8fdd0c8963ca8f355088bf810c030eb7da27.zip |
runtime: run wasip1 tests with wazero
The latest wazero release supports non-blocking I/O and pre-opened
sockets. Unmask the relevant wasip1 tests so that there are multiple
WebAssembly runtimes exercising these code paths.
Change-Id: I8506ab35186f98fde2cd3ce84634d5fcb7b053f1
Reviewed-on: https://go-review.googlesource.com/c/go/+/503595
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Run-TryBot: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
-rw-r--r-- | src/runtime/internal/wasitest/nonblock_test.go | 2 | ||||
-rw-r--r-- | src/runtime/internal/wasitest/tcpecho_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/internal/wasitest/nonblock_test.go b/src/runtime/internal/wasitest/nonblock_test.go index 8fb2860e4b..3072b96ed8 100644 --- a/src/runtime/internal/wasitest/nonblock_test.go +++ b/src/runtime/internal/wasitest/nonblock_test.go @@ -37,8 +37,6 @@ func TestNonblock(t *testing.T) { } switch os.Getenv("GOWASIRUNTIME") { - case "wazero", "": - t.Skip("wazero does not support non-blocking I/O") case "wasmer": t.Skip("wasmer does not support non-blocking I/O") } diff --git a/src/runtime/internal/wasitest/tcpecho_test.go b/src/runtime/internal/wasitest/tcpecho_test.go index 506e6fe40a..c56af2cc85 100644 --- a/src/runtime/internal/wasitest/tcpecho_test.go +++ b/src/runtime/internal/wasitest/tcpecho_test.go @@ -44,6 +44,8 @@ func TestTCPEcho(t *testing.T) { subProcess.Env = append(os.Environ(), "GOOS=wasip1", "GOARCH=wasm") switch os.Getenv("GOWASIRUNTIME") { + case "wazero", "": + subProcess.Env = append(subProcess.Env, "GOWASIRUNTIMEARGS=--listen="+host) case "wasmtime": subProcess.Env = append(subProcess.Env, "GOWASIRUNTIMEARGS=--tcplisten="+host) default: |