mirror of
https://github.com/golang/go
synced 2024-11-21 17:24:42 -07:00
doc/progs: skip cgo1 and cgo2 on freebsd
FreeBSD's srandom has a different signature to darwin/linux. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5795067
This commit is contained in:
parent
e8636a64a2
commit
d2d7de974c
@ -5,6 +5,8 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
goos=$(go env GOOS)
|
||||||
|
|
||||||
defer_panic_recover="
|
defer_panic_recover="
|
||||||
defer
|
defer
|
||||||
defer2
|
defer2
|
||||||
@ -29,11 +31,15 @@ law_of_reflection="
|
|||||||
"
|
"
|
||||||
|
|
||||||
c_go_cgo="
|
c_go_cgo="
|
||||||
cgo1
|
cgo1
|
||||||
cgo2
|
cgo2
|
||||||
cgo3
|
cgo3
|
||||||
cgo4
|
cgo4
|
||||||
"
|
"
|
||||||
|
# cgo1 and cgo2 don't run on freebsd, srandom has a different signature
|
||||||
|
if [ "$goos" == "freebsd" ]; then
|
||||||
|
c_go_cgo="cgo3 cgo4"
|
||||||
|
fi
|
||||||
|
|
||||||
all=$(echo $defer_panic_recover $effective_go $error_handling $law_of_reflection $c_go_cgo slices go1)
|
all=$(echo $defer_panic_recover $effective_go $error_handling $law_of_reflection $c_go_cgo slices go1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user