diff options
| author | Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com> | 2023-03-24 23:11:55 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-04-06 17:48:24 +0000 |
| commit | be50055eef0f460695adb8db2b130392dc367fe7 (patch) | |
| tree | de5f16a5f94368df7f74c1eb648e159841c2bafd /src/runtime/trace | |
| parent | c02fa75086dbc6db0d90f477e7b4c839140fdeb2 (diff) | |
| download | go-be50055eef0f460695adb8db2b130392dc367fe7.tar.xz | |
runtime: add remaining wasip1 files
Implements OS interactions and memory management.
For #58141
Co-authored-by: Richard Musiol <neelance@gmail.com>
Co-authored-by: Achille Roussel <achille.roussel@gmail.com>
Co-authored-by: Julien Fabre <ju.pryz@gmail.com>
Co-authored-by: Evan Phoenix <evan@phx.io>
Change-Id: I876e7b033090c2fe2d76d2535bb63d52efa36185
Reviewed-on: https://go-review.googlesource.com/c/go/+/479618
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/trace')
| -rw-r--r-- | src/runtime/trace/trace_test.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/runtime/trace/trace_test.go b/src/runtime/trace/trace_test.go index 1203e34a58..04a43a05f4 100644 --- a/src/runtime/trace/trace_test.go +++ b/src/runtime/trace/trace_test.go @@ -184,8 +184,9 @@ func testBrokenTimestamps(t *testing.T, data []byte) { } func TestTraceStress(t *testing.T) { - if runtime.GOOS == "js" { - t.Skip("no os.Pipe on js") + switch runtime.GOOS { + case "js", "wasip1": + t.Skip("no os.Pipe on " + runtime.GOOS) } if IsEnabled() { t.Skip("skipping because -test.trace is set") @@ -348,8 +349,9 @@ func isMemoryConstrained() bool { // Do a bunch of various stuff (timers, GC, network, etc) in a separate goroutine. // And concurrently with all that start/stop trace 3 times. func TestTraceStressStartStop(t *testing.T) { - if runtime.GOOS == "js" { - t.Skip("no os.Pipe on js") + switch runtime.GOOS { + case "js", "wasip1": + t.Skip("no os.Pipe on " + runtime.GOOS) } if IsEnabled() { t.Skip("skipping because -test.trace is set") |
