aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2021-09-08 14:03:53 -0700
committerMatthew Dempsky <mdempsky@google.com>2021-09-09 15:07:50 +0000
commita295b3cec80b048048bf51a0462764dc337ca6ef (patch)
treea69b33911392fc829aaac2cbc312a39db53dc1ac /test
parent66f0d35f7145ca8d4e45b04292f44831d6610b3b (diff)
downloadgo-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.go10
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