mirror of
https://github.com/golang/go
synced 2024-11-11 23:40:22 -07:00
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 <cuong.manhle.vn@gmail.com> Trust: Keith Randall <khr@golang.org> Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
3db4888a05
commit
1ae7ddc235
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user