1
0
mirror of https://github.com/golang/go synced 2024-11-24 04:30:14 -07:00

test: re-enable AsmCheck tests for types2-based frontends

run.go has logic for being able to run tests with various -G flags,
but not all test types (in particular, "asmcheck" tests) support
configuring non-default -G levels. The intention was that these tests
would continue running in the default mode (at the time -G=0), but at
some point it seems like we accidentally disabled them all
together (if it ever worked correctly in the first place).

Fixes #48247.

Change-Id: I13917cb0012cbe522d29b23b888de6136872ead4
Reviewed-on: https://go-review.googlesource.com/c/go/+/348671
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Munday <mike.munday@lowrisc.org>
This commit is contained in:
Matthew Dempsky 2021-09-08 14:03:53 -07:00
parent 66f0d35f71
commit a295b3cec8

View File

@ -780,11 +780,13 @@ func (t *test) run() {
}
default:
// we don't know how to add -G for this test yet
if *verbose {
fmt.Printf("excl\t%s\n", t.goFileName())
if t.glevel != CompilerDefaultGLevel {
// we don't know how to add -G for this test yet
if *verbose {
fmt.Printf("excl\t%s\n", t.goFileName())
}
return false
}
return false
}
return true