]> Cypherpunks repositories - gostls13.git/commitdiff
test: fix noinit on noopt builder
authorRuss Cox <rsc@golang.org>
Wed, 16 Nov 2022 05:02:14 +0000 (00:02 -0500)
committerGopher Robot <gobot@golang.org>
Wed, 16 Nov 2022 13:26:16 +0000 (13:26 +0000)
Fix noopt build break from CL 450136 by not running test.

I can't reproduce the failure locally, but it's entirely reasonable
for this test to fail when optimizations are disabled, so just don't
run it when optimizations are disabled.

Change-Id: I882760fc7373ba0449379f81d295312a6be49be1
Reviewed-on: https://go-review.googlesource.com/c/go/+/450740
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Michael Stapelberg <stapelberg@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>

test/noinit.go

index 8bcda1a5ce51a95f8456b6112fcabd5f703eb517..ed8e572e511121d492b15c8a0575ce0d38012a04 100644 (file)
@@ -1,4 +1,5 @@
 // run
+//go:build !gcflags_noopt
 
 // Copyright 2010 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style