mirror of
https://github.com/golang/go
synced 2024-11-18 09:44:50 -07:00
runtime/pprof: ignore too few samples on Windows test
Fixes #10842. Change-Id: I7de98f3073a47911863a252b7a74d8fdaa48c86f Reviewed-on: https://go-review.googlesource.com/12529 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
872b168fe3
commit
3b26e8b29a
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user