]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix the failures from longtest builders
authorAndy Pan <i@andypan.me>
Mon, 25 Mar 2024 23:13:57 +0000 (07:13 +0800)
committerGopher Robot <gobot@golang.org>
Tue, 26 Mar 2024 00:18:30 +0000 (00:18 +0000)
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>

src/cmd/go/testdata/script/build_runtime_gcflags.txt
src/cmd/go/testdata/script/cover_sync_atomic_import.txt
src/cmd/internal/objabi/pkgspecial.go

index c87e480911933a6211fd31991cbf17ec2e75da44..31695b1772fa23ca01486e7b0ddbfd91f461c802 100644 (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'
index 283db3e1a684738f6be5b50e9ae0a767e58343d0..a098979797acf361877da40531023f7b05d37f22 100644 (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
index 44f26024f7afc6c90d8e3cb60236dad72759287c..8ca9c7416dbfef5e4dcd990aef4ac0f337cfafa7 100644 (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",