mirror of
https://github.com/golang/go
synced 2024-11-25 03:07:56 -07:00
test: enforce 1 proc in the test
otherwise it fails spuriously with "newfunc allocated unexpectedly" message when run with GOMAXPROCS>1 (other goroutine allocates). R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/6347056
This commit is contained in:
parent
ed516df4e4
commit
91e56e6486
@ -81,6 +81,7 @@ func h() {
|
|||||||
func newfunc() func(int) int { return func(x int) int { return x } }
|
func newfunc() func(int) int { return func(x int) int { return x } }
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
runtime.GOMAXPROCS(1)
|
||||||
var fail bool
|
var fail bool
|
||||||
|
|
||||||
go f()
|
go f()
|
||||||
|
Loading…
Reference in New Issue
Block a user