From: Russ Cox Date: Thu, 13 Feb 2014 06:16:20 +0000 (-0500) Subject: runtime/pprof: fix arm build after CL 61270043 X-Git-Tag: go1.3beta1~736 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=39067c79f3812bd51a5184f54cf2779b37c6cb36;p=gostls13.git runtime/pprof: fix arm build after CL 61270043 TBR=dvyukov CC=golang-codereviews https://golang.org/cl/62960043 --- diff --git a/src/pkg/runtime/pprof/pprof_test.go b/src/pkg/runtime/pprof/pprof_test.go index ce4eaf5518..0063c35e86 100644 --- a/src/pkg/runtime/pprof/pprof_test.go +++ b/src/pkg/runtime/pprof/pprof_test.go @@ -218,7 +218,7 @@ func TestGoroutineSwitch(t *testing.T) { // exists to record a PC without a traceback. Those are okay. if len(stk) == 2 { f := runtime.FuncForPC(stk[1]) - if f != nil && f.Name() == "System" { + if f != nil && (f.Name() == "System" || f.Name() == "ExternalCode") { return } }