aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCherry Mui <cherryyz@google.com>2021-06-25 15:58:38 -0400
committerDmitri Shuralyov <dmitshur@golang.org>2021-12-21 19:08:16 +0000
commit831d491ad72601f5ea04100fc27c8580844749a9 (patch)
treebe59436e2d4a1b2028fcc7afb9cc554ef03f7db0
parent9364c89e26d9601ee03fa0292c912c795d210ff9 (diff)
downloadgo-831d491ad72601f5ea04100fc27c8580844749a9.tar.gz
go-831d491ad72601f5ea04100fc27c8580844749a9.zip
[release-branch.go1.16] runtime/race: use race build tag on syso_test.go
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. Updates #46931. Fixes #50194. 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> (cherry picked from commit ed01ceaf4838cd67fd802df481769fa9ae9d0440) Reviewed-on: https://go-review.googlesource.com/c/go/+/372218 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
-rw-r--r--src/runtime/race/syso_test.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/runtime/race/syso_test.go b/src/runtime/race/syso_test.go
index db846c5d2a..f5095737a4 100644
--- a/src/runtime/race/syso_test.go
+++ b/src/runtime/race/syso_test.go
@@ -2,13 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +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