From: David du Colombier <0intro@gmail.com> Date: Mon, 13 Jan 2014 12:24:59 +0000 (+0100) Subject: os: disable TestReaddirStatFailures on Plan 9 X-Git-Tag: go1.3beta1~997 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6f97ef28af33fb8c9a2ce19ae74f04cfbead7e7c;p=gostls13.git os: disable TestReaddirStatFailures on Plan 9 R=rsc, dave, aram, jeremyjackins, lucio.dere CC=golang-codereviews, jas https://golang.org/cl/50980043 --- diff --git a/src/pkg/os/os_test.go b/src/pkg/os/os_test.go index c2f811d882..6c2caa94aa 100644 --- a/src/pkg/os/os_test.go +++ b/src/pkg/os/os_test.go @@ -396,11 +396,12 @@ func touch(t *testing.T, name string) { } func TestReaddirStatFailures(t *testing.T) { - if runtime.GOOS == "windows" { - // Windows already does this correctly, but is - // structured with different syscalls such that it - // doesn't use Lstat, so the hook below for testing it - // wouldn't work. + switch runtime.GOOS { + case "windows", "plan9": + // Windows and Plan 9 already do this correctly, + // but are structured with different syscalls such + // that they don't use Lstat, so the hook below for + // testing it wouldn't work. t.Skipf("skipping test on %v", runtime.GOOS) } dir, err := ioutil.TempDir("", "")