]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/pprof: fix arm build after CL 61270043
authorRuss Cox <rsc@golang.org>
Thu, 13 Feb 2014 06:16:20 +0000 (01:16 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 13 Feb 2014 06:16:20 +0000 (01:16 -0500)
TBR=dvyukov
CC=golang-codereviews
https://golang.org/cl/62960043

src/pkg/runtime/pprof/pprof_test.go

index ce4eaf55182c0f3dd92d69f4f89512a3dc7d9d80..0063c35e86a64f95e5d49d6290666e78d418d2b3 100644 (file)
@@ -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
                                }
                        }