diff --git a/tests/core/cgo/cc_libs_darwin_test.go b/tests/core/cgo/cc_libs_darwin_test.go index 3373d87dc5..35fa1665f4 100644 --- a/tests/core/cgo/cc_libs_darwin_test.go +++ b/tests/core/cgo/cc_libs_darwin_test.go @@ -30,7 +30,10 @@ func TestBinaries(t *testing.T) { }{ { shortPath: "tests/core/cgo/pure_bin", - wantLibs: map[string]bool{"libSystem": false, "libc++": false}, + // Since go1.11, pure binaries have a dependency on libSystem. + // This is true with go tool link -linkmode=internal + // and with CGO_ENABLED=0 go build ... + wantLibs: map[string]bool{"libc++": false}, }, { shortPath: "tests/core/cgo/c_srcs_bin", wantLibs: map[string]bool{"libSystem": true, "libc++": false},