]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/race: use race build tag on syso_test.go
authorCherry Mui <cherryyz@google.com>
Fri, 25 Jun 2021 19:58:38 +0000 (15:58 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 25 Jun 2021 21:07:44 +0000 (21:07 +0000)
All other test files in the runtime/race package have race build
tag, except syso_test.go. The test is only relevant if the race
detector is supported. So apply the build tag.

Fixes #46931.

Change-Id: Icdb94214d3821b4ccf61133412ef39b4d7cc7691
Reviewed-on: https://go-review.googlesource.com/c/go/+/331050
Trust: Cherry Mui <cherryyz@google.com>
Reviewed-by: Elias Naur <mail@eliasnaur.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>

src/runtime/race/syso_test.go

index cbce5a8f18419e4e16bb63e8f16819a8048435fe..f5095737a4f632e97770c953094c3ac4ae17f236 100644 (file)
@@ -2,14 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build !android && !js && !ppc64le
-// +build !android,!js,!ppc64le
-
-// Note: we don't run on Android or ppc64 because if there is any non-race test
-// file in this package, the OS tries to link the .syso file into the
-// test (even when we're not in race mode), which fails. I'm not sure
-// why, but easiest to just punt - as long as a single builder runs
-// this test, we're good.
+//go:build race
+// +build race
 
 package race