mirror of
https://github.com/golang/go
synced 2024-11-11 17:51:49 -07:00
runtime: check GOFLAGS not GCFLAGS
GCFLAGS doesn't have any defined meaning. cmd/dist enables mayMoreStackPreempt with GOFLAGS. For #55160. Change-Id: I7ac71e4a1a983a56bd228ab5d24294db5cc595f7 Reviewed-on: https://go-review.googlesource.com/c/go/+/507359 Run-TryBot: Michael Pratt <mpratt@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com> Auto-Submit: Michael Pratt <mpratt@google.com>
This commit is contained in:
parent
18e17e2cb1
commit
5b72f45dd1
@ -76,7 +76,7 @@ func TestCrashDumpsAllThreads(t *testing.T) {
|
||||
|
||||
testenv.MustHaveGoBuild(t)
|
||||
|
||||
if strings.Contains(os.Getenv("GCFLAGS"), "mayMoreStackPreempt") {
|
||||
if strings.Contains(os.Getenv("GOFLAGS"), "mayMoreStackPreempt") {
|
||||
// This test occasionally times out in this debug mode. This is probably
|
||||
// revealing a real bug in the scheduler, but since it seems to only
|
||||
// affect this test and this is itself a test of a debug mode, it's not
|
||||
|
Loading…
Reference in New Issue
Block a user