mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 7 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue