runtime: initialize netpoll in TestNetpollBreak

Netpoll must be always be initialized when TestNetpollBreak is launched.
However, when it is run in standalone, it won't be the case, so it must
be forced.

Updates: #27707

Change-Id: I28147f3834f3d6aca982c6a298feadc09b55f66e
Reviewed-on: https://go-review.googlesource.com/c/go/+/204058
Run-TryBot: Clément Chigot <clement.chigot%atos.net@gtempaccount.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Clément Chigot 2019-10-29 15:35:42 +01:00 committed by Ian Lance Taylor
parent 1a058cd04b
commit 6453337494
2 changed files with 3 additions and 1 deletions

View file

@ -40,6 +40,8 @@ var Usleep = usleep
var PhysHugePageSize = physHugePageSize
var NetpollGenericInit = netpollGenericInit
type LFNode struct {
Next uint64
Pushcnt uintptr