From: Russ Cox Date: Tue, 18 Oct 2022 17:46:26 +0000 (-0400) Subject: cmd/go: fix longtest builder after runtime/internal/atomic X-Git-Tag: go1.20rc1~600 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b6e1a563fc142d7129a0ea6a3c6137ee12ff43f7;p=gostls13.git cmd/go: fix longtest builder after runtime/internal/atomic Loosen test to accept staleness in any runtime/internal package. Fixes longtest builder. Change-Id: Iffda9c1d1816f76c782aecc4d53c0ea3e6580587 Reviewed-on: https://go-review.googlesource.com/c/go/+/443755 TryBot-Result: Gopher Robot Reviewed-by: David Chase Reviewed-by: Bryan Mills Run-TryBot: Russ Cox Auto-Submit: Russ Cox --- diff --git a/src/cmd/go/go_test.go b/src/cmd/go/go_test.go index f1cee5a832..b8cae29119 100644 --- a/src/cmd/go/go_test.go +++ b/src/cmd/go/go_test.go @@ -965,7 +965,7 @@ func TestNewReleaseRebuildsStalePackagesInGOPATH(t *testing.T) { // now they all matter, so keep using sys.go. restore = addVar(sys, 1) defer restore() - tg.wantStale("p1", "stale dependency: runtime/internal/sys", "./testgo list claims p1 is NOT stale, incorrectly, after changing sys.go") + tg.wantStale("p1", "stale dependency: runtime/internal", "./testgo list claims p1 is NOT stale, incorrectly, after changing sys.go") restore() tg.wantNotStale("p1", "", "./testgo list claims p1 is stale, incorrectly, after changing back to old release") addVar(sys, 2) @@ -975,7 +975,7 @@ func TestNewReleaseRebuildsStalePackagesInGOPATH(t *testing.T) { // Restore to "old" release. restore() - tg.wantStale("p1", "stale dependency: runtime/internal/sys", "./testgo list claims p1 is NOT stale, incorrectly, after restoring sys.go") + tg.wantStale("p1", "stale dependency: runtime/internal", "./testgo list claims p1 is NOT stale, incorrectly, after restoring sys.go") tg.run("install", "p1") tg.wantNotStale("p1", "", "./testgo list claims p1 is stale after building with old release") }