From: David du Colombier <0intro@gmail.com> Date: Thu, 5 Nov 2015 08:41:55 +0000 (+0100) Subject: cmd/go: skip TestGoGenerateEnv on Plan 9 X-Git-Tag: go1.6beta1~610 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b4447a1e819e1c76d338d4597858013ede2e2280;p=gostls13.git cmd/go: skip TestGoGenerateEnv on Plan 9 TestGoGenerateEnv was added in CL 16537. However, Plan 9 doesn't have the env command. Change-Id: I5f0c937a1b9b456dcea41ceac7865112f2f65c45 Reviewed-on: https://go-review.googlesource.com/16690 Reviewed-by: Ian Lance Taylor Run-TryBot: David du Colombier <0intro@gmail.com> --- diff --git a/src/cmd/go/go_test.go b/src/cmd/go/go_test.go index 2042f7035b..489782df58 100644 --- a/src/cmd/go/go_test.go +++ b/src/cmd/go/go_test.go @@ -2036,8 +2036,9 @@ func TestGoGenerateRunFlag(t *testing.T) { } func TestGoGenerateEnv(t *testing.T) { - if runtime.GOOS == "windows" { - t.Skip("skipping because windows does not have the env command") + switch runtime.GOOS { + case "plan9", "windows": + t.Skipf("skipping because %s does not have the env command", runtime.GOOS) } tg := testgo(t) defer tg.cleanup()