1
0
mirror of https://github.com/golang/go synced 2024-11-23 14:30:02 -07:00

extra test case for incompatible combination

This commit is contained in:
jsign 2019-10-16 21:13:22 -03:00
parent 66fa86c11e
commit ee67f09d75

View File

@ -109,6 +109,9 @@ stderr 'unsupported GOOS/GOARCH.*/amd644$'
# check -w doesn't allow invalid GOOS with valid GOARCH
! go env -w GOOS=linuxx GOARCH=amd64
stderr 'unsupported GOOS/GOARCH pair linuxx'
# check a valid GOOS and GOARCH values but an incompatible combinations
! go env -w GOOS=android GOARCH=s390x
stderr 'unsupported GOOS/GOARCH pair android/s390x'
# check that -u considers explicit envs
go env -w GOOS=linux GOARCH=mips
env GOOS=windows