diff options
author | Chris O'Hara <cohara87@gmail.com> | 2023-05-08 17:07:18 +1000 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2023-05-25 00:12:40 +0000 |
commit | c5c2184538411c8cf7abc4e536fbe7af8b0307f5 (patch) | |
tree | 8cf138711de09b7d23c1a489482cdd7773af5858 /src/cmd/dist/test.go | |
parent | 04c628935d1487632f903e4e0688fb7a34063752 (diff) | |
download | go-c5c2184538411c8cf7abc4e536fbe7af8b0307f5.tar.gz go-c5c2184538411c8cf7abc4e536fbe7af8b0307f5.zip |
runtime: implement wasip1 netpoll
Implements netpoll using WASI's poll_oneoff system call.
This enables non-blocking I/O support for wasip1.
Change-Id: Ie395fa49d651c8b8262d485e2847dd65b0a10bc6
Reviewed-on: https://go-review.googlesource.com/c/go/+/493357
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Reviewed-by: Julien Fabre <ju.pryz@gmail.com>
Auto-Submit: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/cmd/dist/test.go')
-rw-r--r-- | src/cmd/dist/test.go | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index 3384149391..f16bf32bbf 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -574,7 +574,8 @@ func (t *tester) registerTests() { // registerStdTestSpecially tracks import paths in the standard library // whose test registration happens in a special way. registerStdTestSpecially := map[string]bool{ - "cmd/internal/testdir": true, // Registered at the bottom with sharding. + "runtime/internal/wasitest": true, // Registered at the bottom as a host test. + "cmd/internal/testdir": true, // Registered at the bottom with sharding. } // Fast path to avoid the ~1 second of `go list std cmd` when @@ -786,6 +787,16 @@ func (t *tester) registerTests() { t.registerCgoTests(cgoHeading) } + if goos == "wasip1" { + t.registerTest("wasip1 host tests", + &goTest{ + variant: "host", + pkg: "runtime/internal/wasitest", + timeout: 1 * time.Minute, + runOnHost: true, + }) + } + if goos != "android" && !t.iOS() { // Only start multiple test dir shards on builders, // where they get distributed to multiple machines. |