1
0
mirror of https://github.com/golang/go synced 2024-11-06 12:26:11 -07:00
go/misc/cgo/test/testdata
Jay Conrod 1f9f88b95e cmd/go: fix cgo test when min macOS version is set
Regression tests for #24161 use a macro to conditionally compile some
stub definitions. The macro tests that the minimum macOS version is
less than 10.12.

We get duplicate definitions when building this test with
CGO_CFLAGS=-mmacosx-version-min=10.x where 10.x < 10.12. With this
change, we use a different macro, __MAC_OS_X_VERSION_MAX_ALLOWED__,
which tests the SDK version instead of the minimum macOS version. This
checks whether these definitions are present in headers.

After this change, 'go tool dist test cgo_test' should pass with
CGO_FLAGS=-mmacosx-version-min=10.10.

Updates #35459

Change-Id: I88d63601c94b0369c73c38d216a2d41ba7d4e579
Reviewed-on: https://go-review.googlesource.com/c/go/+/216243
Run-TryBot: Jay Conrod <jayconrod@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2020-01-24 17:36:44 +00:00
..
gcc68255
issue8756
issue8828
issue9026 misc/cgo/test: tweak to pass with GCC 10 2019-12-20 20:12:18 +00:00
issue9400
issue9510a
issue9510b
issue20266
issue23555a
issue23555b
issue24161arg
issue24161e0 cmd/go: fix cgo test when min macOS version is set 2020-01-24 17:36:44 +00:00
issue24161e1 cmd/go: fix cgo test when min macOS version is set 2020-01-24 17:36:44 +00:00
issue24161e2 cmd/go: fix cgo test when min macOS version is set 2020-01-24 17:36:44 +00:00
issue24161res
issue26213
issue26430
issue26743
issue27054 misc/cgo/test: fix tests in module mode 2019-02-24 00:35:18 +00:00
issue27340
issue29563 cmd/link: permit duplicate weak symbols 2019-03-29 17:46:01 +00:00
issue30527
cgo_linux_test.go
cgo_test.go
gcc68255.go
issue8756.go
issue8828.go
issue9026.go
issue9400_linux.go
issue9510.go
issue20266.go
issue23555.go
issue24161_darwin_test.go misc/cgo/test: re-enable darwin cgo tests in race mode 2020-01-10 10:04:49 +00:00
issue26430.go
issue26743.go
issue27340.go
issue29563.go cmd/link: permit duplicate weak symbols 2019-03-29 17:46:01 +00:00
issue30527.go
test26213.go