Skip to content

Commit ed01cea

Browse files
committed
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. Fixes #46931. Change-Id: Icdb94214d3821b4ccf61133412ef39b4d7cc7691 Reviewed-on: https://go-review.googlesource.com/c/go/+/331050 Trust: Cherry Mui <[email protected]> Reviewed-by: Elias Naur <[email protected]> Run-TryBot: Cherry Mui <[email protected]> TryBot-Result: Go Bot <[email protected]>
1 parent d1916e5 commit ed01cea

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/runtime/race/syso_test.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,8 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build !android && !js && !ppc64le
6-
// +build !android,!js,!ppc64le
7-
8-
// Note: we don't run on Android or ppc64 because if there is any non-race test
9-
// file in this package, the OS tries to link the .syso file into the
10-
// test (even when we're not in race mode), which fails. I'm not sure
11-
// why, but easiest to just punt - as long as a single builder runs
12-
// this test, we're good.
5+
//go:build race
6+
// +build race
137

148
package race
159

0 commit comments

Comments
 (0)