From ee67f09d75f4552001cb8b6506bc4af0894c9b05 Mon Sep 17 00:00:00 2001 From: jsign Date: Wed, 16 Oct 2019 21:13:22 -0300 Subject: [PATCH] extra test case for incompatible combination --- src/cmd/go/testdata/script/env_write.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cmd/go/testdata/script/env_write.txt b/src/cmd/go/testdata/script/env_write.txt index f95f1f842a..2366c3f580 100644 --- a/src/cmd/go/testdata/script/env_write.txt +++ b/src/cmd/go/testdata/script/env_write.txt @@ -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