From: Robert Griesemer Date: Sat, 23 Jan 2021 01:49:57 +0000 (-0800) Subject: [dev.typeparams] test: set -G=3 and enable more errorcheck tests in run.go X-Git-Tag: go1.17beta1~1473^2~75 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7947df436d;p=gostls13.git [dev.typeparams] test: set -G=3 and enable more errorcheck tests in run.go Change-Id: I9591f7aeab0448aca661560bf3064e057b48293e Reviewed-on: https://go-review.googlesource.com/c/go/+/286012 Trust: Robert Griesemer Trust: Dan Scales Run-TryBot: Robert Griesemer TryBot-Result: Go Bot Reviewed-by: Dan Scales --- diff --git a/test/run.go b/test/run.go index a460c4d8b6..edf9d654ed 100644 --- a/test/run.go +++ b/test/run.go @@ -786,13 +786,6 @@ func (t *test) run() { "append", "slice", "typeassert", - "ssa/check_bce/debug", - "ssa/intrinsics/debug", - "ssa/opt/debug", - "ssa/prove/debug", - "ssa/likelyadjust/debug", - "ssa/insert_resched_checks/off", - "ssa/phiopt/debug", "defer", "nil", } { @@ -806,7 +799,7 @@ func (t *test) run() { } // Run errorcheck again with -G option (new typechecker). - cmdline = []string{goTool(), "tool", "compile", "-G", "-C", "-e", "-o", "a.o"} + cmdline = []string{goTool(), "tool", "compile", "-G=3", "-C", "-e", "-o", "a.o"} // No need to add -dynlink even if linkshared if we're just checking for errors... cmdline = append(cmdline, flags...) cmdline = append(cmdline, long) @@ -1938,8 +1931,6 @@ var excluded = map[string]bool{ "const2.go": true, // types2 not run after syntax errors "ddd1.go": true, // issue #42987 "directive.go": true, // misplaced compiler directive checks - "embedfunc.go": true, // error reported by irgen (only runs with -G=3) - "embedvers.go": true, // error reported by backend (only runs with -G=3) "float_lit3.go": true, // types2 reports extra errors "import1.go": true, // types2 reports extra errors "import5.go": true, // issue #42988 @@ -1967,7 +1958,6 @@ var excluded = map[string]bool{ "fixedbugs/issue11614.go": true, // types2 reports an extra error "fixedbugs/issue13415.go": true, // declared but not used conflict "fixedbugs/issue14520.go": true, // missing import path error by types2 - "fixedbugs/issue14540.go": true, // error reported by noder (not running for types2 errorcheck test) "fixedbugs/issue16428.go": true, // types2 reports two instead of one error "fixedbugs/issue17038.go": true, // types2 doesn't report a follow-on error (pref: types2) "fixedbugs/issue17645.go": true, // multiple errors on same line