aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing.go')
-rw-r--r--src/testing/testing.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testing/testing.go b/src/testing/testing.go
index b2d4c0c938..3475bfca4a 100644
--- a/src/testing/testing.go
+++ b/src/testing/testing.go
@@ -1261,6 +1261,9 @@ func (c *common) Skipped() bool {
// When printing file and line information, that function will be skipped.
// Helper may be called simultaneously from multiple goroutines.
func (c *common) Helper() {
+ if c.isSynctest {
+ c = c.parent
+ }
c.mu.Lock()
defer c.mu.Unlock()
if c.helperPCs == nil {