diff --git a/test/run.go b/test/run.go index a6ee1634bb..cdbe15c389 100644 --- a/test/run.go +++ b/test/run.go @@ -92,6 +92,10 @@ func defaultAllCodeGen() bool { return os.Getenv("GO_BUILDER_NAME") == "linux-amd64" } +func optimizationOff() bool { + return strings.HasSuffix(os.Getenv("GO_BUILDER_NAME"), "-noopt") +} + var ( goos = env.GOOS goarch = env.GOARCH @@ -529,7 +533,13 @@ func (ctxt *context) match(name string) bool { return false } -func init() { checkShouldTest() } +func init() { + checkShouldTest() + // TODO(cuonglm): remove once we fix non-unified frontend or when it gone. + if optimizationOff() { + delete(go118Failures, "fixedbugs/issue53702.go") + } +} // goGcflags returns the -gcflags argument to use with go build / go run. // This must match the flags used for building the standard library,