diff options
author | Ian Lance Taylor <iant@google.com> | 2016-02-03 21:58:02 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-02-03 21:58:02 +0000 |
commit | f98dd1a338867a408f7c72d73fbad7fe7fc93e3a (patch) | |
tree | 2f8da9862a9c1fe0df138917f997b03439c02773 /libgo/go/compress/lzw/writer_test.go | |
parent | b081ed4efc144da0c45a6484aebfd10e0eb9fda3 (diff) | |
download | gcc-f98dd1a338867a408f7c72d73fbad7fe7fc93e3a.tar.gz |
libgo: Update to go1.6rc1.
Reviewed-on: https://go-review.googlesource.com/19200
From-SVN: r233110
Diffstat (limited to 'libgo/go/compress/lzw/writer_test.go')
-rw-r--r-- | libgo/go/compress/lzw/writer_test.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libgo/go/compress/lzw/writer_test.go b/libgo/go/compress/lzw/writer_test.go index c20d058f8d3..66d761727f4 100644 --- a/libgo/go/compress/lzw/writer_test.go +++ b/libgo/go/compress/lzw/writer_test.go @@ -5,6 +5,7 @@ package lzw import ( + "internal/testenv" "io" "io/ioutil" "os" @@ -13,6 +14,7 @@ import ( ) var filenames = []string{ + "../testdata/gettysburg.txt", "../testdata/e.txt", "../testdata/pi.txt", } @@ -89,10 +91,16 @@ func TestWriter(t *testing.T) { for _, filename := range filenames { for _, order := range [...]Order{LSB, MSB} { // The test data "2.71828 etcetera" is ASCII text requiring at least 6 bits. - for _, litWidth := range [...]int{6, 7, 8} { + for litWidth := 6; litWidth <= 8; litWidth++ { + if filename == "../testdata/gettysburg.txt" && litWidth == 6 { + continue + } testFile(t, filename, order, litWidth) } } + if testing.Short() && testenv.Builder() == "" { + break + } } } |