]> Cypherpunks.ru repositories - gostls13.git/commit
test: recognize and use gc build tag
authorIan Lance Taylor <iant@golang.org>
Thu, 17 Dec 2020 22:03:07 +0000 (14:03 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 18 Dec 2020 00:10:44 +0000 (00:10 +0000)
commitf1778c28a9c6a898e9d78207847d61b189c49b5c
tree9bd31f79613c5f2f3b805e2d15d7d173d89ae6d6
parent8fcf318123e15abf6ce35e33831bdb64a4e071ff
test: recognize and use gc build tag

Change the run.go driver to recognize the "gc" build tag.

Change existing tests to use the "gc" build tag if they use some
feature that seems specific to the gc compiler, such as passing specific
options to or expecting specific behavior from "go tool compile".
Change tests to use the "!gccgo" build tag if they use "go build" or
"go run", as while those might work with compilers other than gc, they
won't work with the way that gccgo runs its testsuite (which happens
independently of the go command).

For #43252

Change-Id: I666e04b6d7255a77dfc256ee304094e3a6bb15ad
Reviewed-on: https://go-review.googlesource.com/c/go/+/279052
Trust: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
22 files changed:
test/fixedbugs/bug302.go
test/fixedbugs/bug369.go
test/fixedbugs/issue10607.go
test/fixedbugs/issue11771.go
test/fixedbugs/issue13268.go
test/fixedbugs/issue14636.go
test/fixedbugs/issue16037_run.go
test/fixedbugs/issue19658.go
test/fixedbugs/issue21317.go
test/fixedbugs/issue21576.go
test/fixedbugs/issue22660.go
test/fixedbugs/issue22662b.go
test/fixedbugs/issue33275_run.go
test/fixedbugs/issue33555.go
test/fixedbugs/issue36437.go
test/fixedbugs/issue9355.go
test/fixedbugs/issue9862_run.go
test/linkobj.go
test/linkx_run.go
test/nosplit.go
test/run.go
test/sinit_run.go