]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: enable additional cgo tests on openbsd architectures
authorJoel Sing <joel@sing.id.au>
Tue, 3 Nov 2020 13:29:39 +0000 (00:29 +1100)
committerJoel Sing <joel@sing.id.au>
Wed, 4 Nov 2020 16:54:48 +0000 (16:54 +0000)
OpenBSD gained __thread support quite some time ago.

Change-Id: I7de0a5c0c4de1a7ce59e48ac939fc2daf56be8f5
Reviewed-on: https://go-review.googlesource.com/c/go/+/267318
Trust: Joel Sing <joel@sing.id.au>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Joel Sing <joel@sing.id.au>
TryBot-Result: Go Bot <gobot@golang.org>

src/cmd/dist/test.go

index f087aba2b996a222700ac08e456336fcbd1cf3f6..5e3711b0c80694eb33a4d36801db76b627a97a75 100644 (file)
@@ -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")