diff options
author | Matthew Dempsky <mdempsky@google.com> | 2021-09-08 14:03:53 -0700 |
---|---|---|
committer | Matthew Dempsky <mdempsky@google.com> | 2021-09-09 15:07:50 +0000 |
commit | a295b3cec80b048048bf51a0462764dc337ca6ef (patch) | |
tree | a69b33911392fc829aaac2cbc312a39db53dc1ac /test | |
parent | 66f0d35f7145ca8d4e45b04292f44831d6610b3b (diff) | |
download | go-a295b3cec80b048048bf51a0462764dc337ca6ef.tar.gz go-a295b3cec80b048048bf51a0462764dc337ca6ef.zip |
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>
Diffstat (limited to 'test')
-rw-r--r-- | test/run.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/run.go b/test/run.go index 76621d9242..790b54bfd2 100644 --- a/test/run.go +++ b/test/run.go @@ -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 |