From: Ian Lance Taylor Date: Mon, 21 Dec 2015 18:10:17 +0000 (-0800) Subject: misc/cgo/testcarchive: skip test4 on darwin/{arm,arm64} X-Git-Tag: go1.6beta2~197 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=94ff47939a1f8d83e9a5241add2de8aa3295439d;p=gostls13.git misc/cgo/testcarchive: skip test4 on darwin/{arm,arm64} Fixes #13701. Change-Id: I9825864d23aeba1971cf5f581e1e59ac4c9b87fd Reviewed-on: https://go-review.googlesource.com/18090 Reviewed-by: David Crawshaw --- diff --git a/misc/cgo/testcarchive/test.bash b/misc/cgo/testcarchive/test.bash index 32365a209e..d561c02ab7 100755 --- a/misc/cgo/testcarchive/test.bash +++ b/misc/cgo/testcarchive/test.bash @@ -54,12 +54,19 @@ if ! $bin arg1 arg2; then fi rm -rf libgo.a libgo.h testp pkg -GOPATH=$(pwd) go build -buildmode=c-archive -o libgo2.a libgo2 -$(go env CC) $(go env GOGCCFLAGS) $ccargs -o testp main2.c libgo2.a -if ! $bin; then - echo "FAIL test4" - status=1 -fi -rm -rf libgo2.a libgo2.h testp pkg +case "$(go env GOOS)/$(go env GOARCH)" in +"darwin/arm" | "darwin/arm64") + echo "Skipping test4; see https://golang.org/issue/13701" + ;; +*) + GOPATH=$(pwd) go build -buildmode=c-archive -o libgo2.a libgo2 + $(go env CC) $(go env GOGCCFLAGS) $ccargs -o testp main2.c libgo2.a + if ! $bin; then + echo "FAIL test4" + status=1 + fi + rm -rf libgo2.a libgo2.h testp pkg + ;; +esac exit $status