From 374c600caeb4b27127ed3c7da95d449e47245ef6 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Thu, 20 Feb 2014 21:43:24 +0100 Subject: [PATCH] go.tools/cmd/vet: disable TestVet on Plan 9 LGTM=minux.ma R=golang-codereviews, minux.ma CC=golang-codereviews https://golang.org/cl/64410043 --- cmd/vet/vet_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/vet/vet_test.go b/cmd/vet/vet_test.go index 235c1b9b04..65fefb950f 100644 --- a/cmd/vet/vet_test.go +++ b/cmd/vet/vet_test.go @@ -24,9 +24,10 @@ const ( // rm testvet // func TestVet(t *testing.T) { - // Windows systems can't be guaranteed to have Perl and so can't run errchk. - if runtime.GOOS == "windows" { - t.Skip("skipping test; no Perl on Windows") + // Plan 9 and Windows systems can't be guaranteed to have Perl and so can't run errchk. + switch runtime.GOOS { + case "plan9", "windows": + t.Skip("skipping test; no Perl on %q", runtime.GOOS) } // go build