Commit b4447a1e authored by David du Colombier's avatar David du Colombier

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/16690Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
Run-TryBot: David du Colombier <0intro@gmail.com>
parent d5ba5821
...@@ -2036,8 +2036,9 @@ func TestGoGenerateRunFlag(t *testing.T) { ...@@ -2036,8 +2036,9 @@ func TestGoGenerateRunFlag(t *testing.T) {
} }
func TestGoGenerateEnv(t *testing.T) { func TestGoGenerateEnv(t *testing.T) {
if runtime.GOOS == "windows" { switch runtime.GOOS {
t.Skip("skipping because windows does not have the env command") case "plan9", "windows":
t.Skipf("skipping because %s does not have the env command", runtime.GOOS)
} }
tg := testgo(t) tg := testgo(t)
defer tg.cleanup() defer tg.cleanup()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment