runtime: fix the failures from longtest builders

Follow up CL 560155

Change-Id: Id9230d79c296452f3741123c75b45c3d3b1be4f5
Reviewed-on: https://go-review.googlesource.com/c/go/+/574295
Reviewed-by: Than McIntosh <thanm@google.com>
Auto-Submit: Than McIntosh <thanm@google.com>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Andy Pan 2024-03-26 07:13:57 +08:00 committed by Gopher Robot
parent e7bdc8819a
commit 3fefec96ad
3 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ env GO111MODULE=off
env GOCACHE=$WORK/gocache
mkdir $GOCACHE
# Verify the standard library (specifically runtime/internal/atomic) can be
# Verify the standard library (specifically internal/runtime/atomic) can be
# built with -gcflags when -n is given. See golang.org/issue/29346.
go build -n -gcflags=all='-l' std
stderr 'compile.* runtime/internal/atomic .* -l'
stderr 'compile.* internal/runtime/atomic .* -l'

View File

@ -11,13 +11,13 @@ go test -short -cover -covermode=atomic -coverpkg=coverdep/p1 coverdep
# execute at least one test.
go test -short -covermode=atomic -run=TestStoreInt64 sync/atomic
go test -short -covermode=atomic -run=TestAnd8 runtime/internal/atomic
go test -short -covermode=atomic -run=TestAnd8 internal/runtime/atomic
# Skip remainder if no race detector support.
[!race] skip
go test -short -cover -race -run=TestStoreInt64 sync/atomic
go test -short -cover -race -run=TestAnd8 runtime/internal/atomic
go test -short -cover -race -run=TestAnd8 internal/runtime/atomic
-- go.mod --
module coverdep

View File

@ -73,7 +73,7 @@ var extraNoInstrumentPkgs = []string{
"-internal/bytealg",
}
var noRaceFuncPkgs = []string{"sync", "sync/atomic"}
var noRaceFuncPkgs = []string{"sync", "sync/atomic", "internal/runtime/atomic"}
var allowAsmABIPkgs = []string{
"runtime",