]> Cypherpunks repositories - gostls13.git/commitdiff
test: relax live.go for GOEXPERIMENT=unified
authorMatthew Dempsky <mdempsky@google.com>
Tue, 9 Aug 2022 08:32:22 +0000 (01:32 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 10 Aug 2022 18:52:08 +0000 (18:52 +0000)
This CL applies the same change to test/live.go that was previously
applied to test/live_regabi.go in golang.org/cl/415240. This wasn't
noticed at the time though, because GOEXPERIMENT=unified was only
being tested on linux-amd64, which is a regabi platform.

Change-Id: I0c75c2b7097544305e4174c2f5ec6ec283c81a8e
Reviewed-on: https://go-review.googlesource.com/c/go/+/422254
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>

test/live.go

index 6130f7f06944d79535d3468bb01d0069e5b84fb0..46fec2afd89bc8c56c5f3136e52a95c8429fd00b 100644 (file)
@@ -1,4 +1,5 @@
 // errorcheckwithauto -0 -l -live -wb=0 -d=ssa/insert_resched_checks/off
+//go:build !ppc64 && !ppc64le && !goexperiment.regabiargs
 // +build !ppc64,!ppc64le,!goexperiment.regabiargs
 
 // ppc64 needs a better tighten pass to make f18 pass
@@ -606,7 +607,7 @@ func f38(b bool) {
                        printnl()
                case *fi38(2) = <-fc38(): // ERROR "live at call to fc38:( .autotmp_[0-9]+)+$" "live at call to fi38:( .autotmp_[0-9]+)+$" "stack object .autotmp_[0-9]+ string$"
                        printnl()
-               case *fi38(3), *fb38() = <-fc38(): // ERROR "stack object .autotmp_[0-9]+ string$" "live at call to fc38:( .autotmp_[0-9]+)+$" "live at call to fi38:( .autotmp_[0-9]+)+$"
+               case *fi38(3), *fb38() = <-fc38(): // ERROR "stack object .autotmp_[0-9]+ string$" "live at call to f[ibc]38:( .autotmp_[0-9]+)+$"
                        printnl()
                }
                printnl()