From 44b90b2e2eeca8e2bb4a2084ec6fdd279c88f76d Mon Sep 17 00:00:00 2001 From: Tao Qingyun Date: Wed, 17 Mar 2021 09:30:43 +0800 Subject: [PATCH] testing: update helperNames just before checking it parent's helperNames has not been set when frameSkip called, moving helperNames initilazing to frameSkip. Fixes #44887 --- src/testing/testing.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/testing/testing.go b/src/testing/testing.go index 3e0cd50932..8cdfb0f10f 100644 --- a/src/testing/testing.go +++ b/src/testing/testing.go @@ -509,6 +509,7 @@ func (c *common) frameSkip(skip int) runtime.Frame { } return prevFrame } + // If more helper PCs have been added since we last did the conversion if c.helperNames == nil { c.helperNames = make(map[string]struct{}) for pc := range c.helperPCs {