1
0
mirror of https://github.com/golang/go synced 2024-11-21 22:34:48 -07:00

runtime/pprof: disable test on Leopard 64-bit

Fixes #3234.

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5756078
This commit is contained in:
Russ Cox 2012-03-07 11:44:54 -05:00
parent f4b40d92c8
commit b37841cc06

View File

@ -24,8 +24,9 @@ func TestCPUProfile(t *testing.T) {
}
vers := string(out)
t.Logf("uname -a: %v", vers)
if strings.Contains(vers, "Darwin Kernel Version 10.8.0") && strings.Contains(vers, "root:xnu-1504.15.3~1/RELEASE_X86_64") {
t.Logf("skipping test on known-broken kernel (64-bit Snow Leopard)")
// Lion uses "Darwin Kernel Version 11".
if strings.Contains(vers, "Darwin Kernel Version 10") && strings.Contains(vers, "RELEASE_X86_64") {
t.Logf("skipping test on known-broken kernel (64-bit Leopard / Snow Leopard)")
return
}
case "plan9":