From: Joel Sing Date: Tue, 3 Nov 2020 13:29:39 +0000 (+1100) Subject: cmd/dist: enable additional cgo tests on openbsd architectures X-Git-Tag: go1.16beta1~336 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=594b4a3bfef24ed207e058fb522ed51e65cb93bf;p=gostls13.git cmd/dist: enable additional cgo tests on openbsd architectures OpenBSD gained __thread support quite some time ago. Change-Id: I7de0a5c0c4de1a7ce59e48ac939fc2daf56be8f5 Reviewed-on: https://go-review.googlesource.com/c/go/+/267318 Trust: Joel Sing Reviewed-by: Cherry Zhang Run-TryBot: Joel Sing TryBot-Result: Go Bot --- diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index f087aba2b9..5e3711b0c8 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -1095,7 +1095,6 @@ func (t *tester) cgoTest(dt *distTest) error { pair := gohostos + "-" + goarch switch pair { case "darwin-amd64", "darwin-arm64", - "openbsd-386", "openbsd-amd64", "windows-386", "windows-amd64": // test linkmode=external, but __thread not supported, so skip testtls. if !t.extLink() { @@ -1118,7 +1117,8 @@ func (t *tester) cgoTest(dt *distTest) error { "dragonfly-amd64", "freebsd-386", "freebsd-amd64", "freebsd-arm", "linux-386", "linux-amd64", "linux-arm", "linux-arm64", "linux-ppc64le", "linux-riscv64", "linux-s390x", - "netbsd-386", "netbsd-amd64": + "netbsd-386", "netbsd-amd64", + "openbsd-386", "openbsd-amd64", "openbsd-arm", "openbsd-arm64", "openbsd-mips64": cmd := t.addCmd(dt, "misc/cgo/test", t.goTest()) cmd.Env = append(os.Environ(), "GOFLAGS=-ldflags=-linkmode=external")