From 04557861f124410b768b1ba5bb3a91b705afbfc6 Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Mon, 27 Jun 2016 10:23:32 +1200 Subject: [PATCH] webdav: skip test that fails with gccgo Change-Id: Ibcb2fbb6a016046dd67e92372376f0f639979e37 Reviewed-on: https://go-review.googlesource.com/24484 Reviewed-by: Mikio Hara Run-TryBot: Mikio Hara TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- webdav/file_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webdav/file_test.go b/webdav/file_test.go index 7ce6c127..cbd0240a 100644 --- a/webdav/file_test.go +++ b/webdav/file_test.go @@ -786,6 +786,9 @@ func TestMemFile(t *testing.T) { // memFile doesn't allocate a new buffer for each of those N times. Otherwise, // calling io.Copy(aMemFile, src) is likely to have quadratic complexity. func TestMemFileWriteAllocs(t *testing.T) { + if runtime.Compiler == "gccgo" { + t.Skip("gccgo allocates here") + } fs := NewMemFS() f, err := fs.OpenFile("/xxx", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0666) if err != nil {