]> Cypherpunks.ru repositories - gostls13.git/commit
testing: do not crash when m.Run is called twice and -test.testlogfile is used
authorRuss Cox <rsc@golang.org>
Thu, 14 Dec 2017 02:46:03 +0000 (21:46 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 14 Dec 2017 14:57:01 +0000 (14:57 +0000)
commit94d7c884c38561dba467feef3acf6ada50713e59
treefeee894c601fffbe88f71c7f5fa43e312d77064e
parente28a0d397b3118d518a0ef3c4cd68c0577d3d9a6
testing: do not crash when m.Run is called twice and -test.testlogfile is used

Tests exist that call m.Run in a loop‽
Now we have one too.

Fixes #23129.

Change-Id: I8cbecb724f239ae14ad45d75e67d12c80e41c994
Reviewed-on: https://go-review.googlesource.com/83956
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/go_test.go
src/cmd/go/testdata/src/multimain/multimain_test.go [new file with mode: 0644]
src/testing/internal/testdeps/deps.go
src/testing/testing.go