]> Cypherpunks repositories - gostls13.git/commit
testing: fix data race between parallel subtests
authorChangkun Ou <hi@changkun.us>
Fri, 28 Feb 2020 20:53:38 +0000 (21:53 +0100)
committerIan Lance Taylor <iant@golang.org>
Thu, 19 Mar 2020 21:07:59 +0000 (21:07 +0000)
commit93a9561b23b782244a7c5d77efe71f57dee8c4a5
tree90838211cd89c3a19b7020435a389b05d899a905
parenta4c48d61f59177e1b6de1efd6a232fac7e8e112f
testing: fix data race between parallel subtests

This CL fixes a race condition if there are two subtests, and
one finishing but the other is panicking.

Fixes #37551

Change-Id: Ic33963eb338aec228964b95f7c34a0d207b91e00
Reviewed-on: https://go-review.googlesource.com/c/go/+/221322
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/testdata/script/test_main_panic.txt [new file with mode: 0644]
src/testing/testing.go