diff options
| author | Russ Cox <rsc@golang.org> | 2015-07-22 13:22:42 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2015-07-22 20:26:37 +0000 |
| commit | 3b26e8b29a488d96ea921839ed22e70d894ebe38 (patch) | |
| tree | 490bd6a66d9b496c85d60c81f3c3ce957dc8c919 /src/runtime | |
| parent | 872b168fe344914550c29b4f1b0cac9f2e70e7fc (diff) | |
| download | go-3b26e8b29a488d96ea921839ed22e70d894ebe38.tar.xz | |
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>
Diffstat (limited to 'src/runtime')
| -rw-r--r-- | src/runtime/pprof/pprof_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/runtime/pprof/pprof_test.go b/src/runtime/pprof/pprof_test.go index e9fd1466ee..785d75a01e 100644 --- a/src/runtime/pprof/pprof_test.go +++ b/src/runtime/pprof/pprof_test.go @@ -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 } |
