From: Bryan C. Mills Date: Thu, 24 Aug 2023 15:09:41 +0000 (-0400) Subject: test/fixedbugs: require cgo for issue10607.go X-Git-Tag: go1.22rc1~1114 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fe2c686b63804b0e22295f02e4e58ddbb3da5898;p=gostls13.git test/fixedbugs: require cgo for issue10607.go This test passes "-linkmode=external" to 'go run' to link the binary using the system C linker. CGO_ENABLED=0 explicitly tells cmd/go not to use the C toolchain, so the test should not be run in that configuration. Updates #46330. Change-Id: I16ac66aac91178045f9decaeb28134061e9711f7 Reviewed-on: https://go-review.googlesource.com/c/go/+/522495 Reviewed-by: Heschi Kreinick Reviewed-by: Than McIntosh TryBot-Result: Gopher Robot Auto-Submit: Bryan Mills Run-TryBot: Bryan Mills --- diff --git a/test/fixedbugs/issue10607.go b/test/fixedbugs/issue10607.go index 8a04bc9def..759be715b7 100644 --- a/test/fixedbugs/issue10607.go +++ b/test/fixedbugs/issue10607.go @@ -1,4 +1,4 @@ -// +build linux,!ppc64,gc +// +build linux,!ppc64,gc,cgo // run // Copyright 2015 The Go Authors. All rights reserved. @@ -19,7 +19,7 @@ import ( func main() { test("internal") - test("external") + test("external") // The 'cgo' build constraint should imply that a linker is available. } func test(linkmode string) {