Skip to content

Commit

Permalink
misc/cgo/testcarchive: skip test4 on darwin/{arm,arm64}
Browse files Browse the repository at this point in the history
Fixes #13701.

Change-Id: I9825864d23aeba1971cf5f581e1e59ac4c9b87fd
Reviewed-on: https://go-review.googlesource.com/18090
Reviewed-by: David Crawshaw <crawshaw@golang.org>
  • Loading branch information
ianlancetaylor committed Dec 22, 2015
1 parent 11ac72a commit 94ff479
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions misc/cgo/testcarchive/test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 94ff479

Please sign in to comment.