1
0
mirror of https://github.com/golang/go synced 2024-09-29 05:14:29 -06:00

cmd/cgo/internal/testnocgo: always run in default configuration

This test is actually intended to test that we can build in -static
mode even without any cgo. That means it's quite harmless to run in
the default build configuration (in addition to running with various
other build configurations).

Change-Id: Ic6cb5c0eaab83f9bd5718aae57d0fdc69afcb8b6
Reviewed-on: https://go-review.googlesource.com/c/go/+/496178
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
Austin Clements 2023-05-17 15:59:47 -04:00
parent ab3c2b6d89
commit cbd3305f8c

View File

@ -1130,6 +1130,7 @@ func (t *tester) registerCgoTests(heading string) {
cgoTest("auto", "test", "auto", "")
cgoTest("auto", "testtls", "auto", "")
cgoTest("auto", "testnocgo", "auto", "")
// Stub out various buildmode=pie tests on alpine until 54354 resolved.
builderName := os.Getenv("GO_BUILDER_NAME")
@ -1209,7 +1210,6 @@ func (t *tester) registerCgoTests(heading string) {
// TODO(#56629): Why does this fail on netbsd-arm?
cgoTest("static", "testtls", "external", "static", staticCheck)
}
cgoTest("auto", "testnocgo", "auto", "", staticCheck)
cgoTest("external", "testnocgo", "external", "", staticCheck)
if goos != "android" {
cgoTest("static", "testnocgo", "external", "static", staticCheck)