From: Cuong Manh Le Date: Thu, 2 Sep 2021 04:06:27 +0000 (+0700) Subject: test: always run test in unified IR mode regardless of explicit -G flag X-Git-Tag: go1.18beta1~1518 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1ae7ddc235;p=gostls13.git test: always run test in unified IR mode regardless of explicit -G flag Currently, if a test explicitly specify -G flag, if that flag conflict with compiler default -G flag, the test will be skipped. That's the reason CL 346469 haven't fixed the unified IR stuff, but still make the unified builder passed. This CL makes run.go always run the test in unified IR mode, regardless of the explicit -G flag specified. Updates #48094 Change-Id: I959ecaff6aca07844f0ffcf36caa60cf0747e8ce Reviewed-on: https://go-review.googlesource.com/c/go/+/347271 Trust: Cuong Manh Le Trust: Keith Randall Run-TryBot: Cuong Manh Le TryBot-Result: Go Bot Reviewed-by: Matthew Dempsky --- diff --git a/test/run.go b/test/run.go index 3759059c95..ddce94d7cc 100644 --- a/test/run.go +++ b/test/run.go @@ -759,7 +759,8 @@ func (t *test) run() { } } - if hasGFlag && t.glevel != CompilerDefaultGLevel { + // In unified IR mode, run the test regardless of explicit -G flag. + if !unifiedEnabled && hasGFlag && t.glevel != CompilerDefaultGLevel { // test provides explicit -G flag already; don't run again if *verbose { fmt.Printf("excl\t%s\n", t.goFileName())