aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/pprof
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/pprof')
-rw-r--r--src/runtime/pprof/pprof_test.go6
-rw-r--r--src/runtime/pprof/proto_test.go2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/runtime/pprof/pprof_test.go b/src/runtime/pprof/pprof_test.go
index b19ac16170..56ba6d9803 100644
--- a/src/runtime/pprof/pprof_test.go
+++ b/src/runtime/pprof/pprof_test.go
@@ -448,6 +448,8 @@ func testCPUProfile(t *testing.T, matches profileMatchFunc, f func(dur time.Dura
t.Logf("uname -a: %v", vers)
case "plan9":
t.Skip("skipping on plan9")
+ case "wasip1":
+ t.Skip("skipping on wasip1")
}
broken := cpuProfilingBroken()
@@ -1457,6 +1459,8 @@ func containsCountsLabels(prof *profile.Profile, countLabels map[int64]map[strin
}
func TestGoroutineProfileConcurrency(t *testing.T) {
+ testenv.MustHaveParallelism(t)
+
goroutineProf := Lookup("goroutine")
profilerCalls := func(s string) int {
@@ -1785,6 +1789,7 @@ func TestCPUProfileLabel(t *testing.T) {
}
func TestLabelRace(t *testing.T) {
+ testenv.MustHaveParallelism(t)
// Test the race detector annotations for synchronization
// between setting labels and consuming them from the
// profile.
@@ -1809,6 +1814,7 @@ func TestLabelRace(t *testing.T) {
}
func TestGoroutineProfileLabelRace(t *testing.T) {
+ testenv.MustHaveParallelism(t)
// Test the race detector annotations for synchronization
// between setting labels and consuming them from the
// goroutine profile. See issue #50292.
diff --git a/src/runtime/pprof/proto_test.go b/src/runtime/pprof/proto_test.go
index e05a1a60a7..8ec9c9109a 100644
--- a/src/runtime/pprof/proto_test.go
+++ b/src/runtime/pprof/proto_test.go
@@ -131,7 +131,7 @@ func testPCs(t *testing.T) (addr1, addr2 uint64, map1, map2 *profile.Mapping) {
BuildID: peBuildID(exe),
HasFunctions: true,
}
- case "js":
+ case "js", "wasip1":
addr1 = uint64(abi.FuncPCABIInternal(f1))
addr2 = uint64(abi.FuncPCABIInternal(f2))
default: