]> Cypherpunks repositories - gostls13.git/commitdiff
image/gif: (temporarily) disable broken tests.
authorNigel Tao <nigeltao@golang.org>
Thu, 18 Jun 2015 22:26:02 +0000 (08:26 +1000)
committerNigel Tao <nigeltao@golang.org>
Thu, 18 Jun 2015 22:39:09 +0000 (22:39 +0000)
The compress/lzw encoder now rejects too-large input bytes, as of
https://go-review.googlesource.com/#/c/11227/, so we can't generate bad
GIFs programatically.

Change-Id: I0b32ce8e1f1776cd6997869db61e687430464e45
Reviewed-on: https://go-review.googlesource.com/11270
Reviewed-by: Nigel Tao <nigeltao@golang.org>
src/image/gif/reader_test.go

index 94bd0a7c9499e9e177c49f65e95408e0703e9f1f..7712d46228f1dc0213913a559b9dce0f79efdbbb 100644 (file)
@@ -189,6 +189,12 @@ func TestBounds(t *testing.T) {
 }
 
 func TestNoPalette(t *testing.T) {
+       // https://go-review.googlesource.com/#/c/11227/
+       // changed the lzw encoder to reject input bytes that are too large,
+       // so that this test code no longer generates the right invalid GIF.
+       // TODO(nigeltao): re-enable this test somehow.
+       return
+
        b := &bytes.Buffer{}
 
        // Manufacture a GIF with no palette, so any pixel at all
@@ -215,6 +221,12 @@ func TestNoPalette(t *testing.T) {
 }
 
 func TestPixelOutsidePaletteRange(t *testing.T) {
+       // https://go-review.googlesource.com/#/c/11227/
+       // changed the lzw encoder to reject input bytes that are too large,
+       // so that this test code no longer generates the right invalid GIF.
+       // TODO(nigeltao): re-enable this test somehow.
+       return
+
        for _, pval := range []byte{0, 1, 2, 3, 255} {
                b := &bytes.Buffer{}