Commit 3b26e8b2 authored by Russ Cox's avatar Russ Cox

runtime/pprof: ignore too few samples on Windows test

Fixes #10842.

Change-Id: I7de98f3073a47911863a252b7a74d8fdaa48c86f
Reviewed-on: https://go-review.googlesource.com/12529Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 872b168f
......@@ -164,6 +164,13 @@ func testCPUProfile(t *testing.T, need []string, f func()) {
})
t.Logf("total %d CPU profile samples collected", samples)
if samples < 10 && runtime.GOOS == "windows" {
// On some windows machines we end up with
// not enough samples due to coarse timer
// resolution. Let it go.
t.Skip("too few samples on Windows (golang.org/issue/10842)")
}
if len(need) == 0 {
return
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment