Commit b37841cc authored by Russ Cox's avatar Russ Cox

runtime/pprof: disable test on Leopard 64-bit

Fixes #3234.

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5756078
parent f4b40d92
...@@ -24,8 +24,9 @@ func TestCPUProfile(t *testing.T) { ...@@ -24,8 +24,9 @@ func TestCPUProfile(t *testing.T) {
} }
vers := string(out) vers := string(out)
t.Logf("uname -a: %v", vers) 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") { // Lion uses "Darwin Kernel Version 11".
t.Logf("skipping test on known-broken kernel (64-bit Snow Leopard)") 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 return
} }
case "plan9": case "plan9":
......
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