diff options
author | Nick Clifton <nickc@redhat.com> | 2022-04-12 16:24:10 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2022-04-12 16:24:10 +0100 |
commit | 8e6b35366073a1a71df805061ecf016cc915a9f9 (patch) | |
tree | 6ddbc8123ab4bdbcd3fba1a4c6e0f1091f66964e /zlib/test/example.c | |
parent | 63e0ee15a327b933a9e325908f6e5b334106290c (diff) | |
download | binutils-8e6b35366073a1a71df805061ecf016cc915a9f9.zip binutils-8e6b35366073a1a71df805061ecf016cc915a9f9.tar.gz binutils-8e6b35366073a1a71df805061ecf016cc915a9f9.tar.bz2 |
Rebase the zlib sources to the 1.2.12 release
Diffstat (limited to 'zlib/test/example.c')
-rw-r--r-- | zlib/test/example.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/zlib/test/example.c b/zlib/test/example.c index eee17ce..949f4f6 100644 --- a/zlib/test/example.c +++ b/zlib/test/example.c @@ -440,9 +440,8 @@ void test_sync(compr, comprLen, uncompr, uncomprLen) CHECK_ERR(err, "inflateSync"); err = inflate(&d_stream, Z_FINISH); - if (err != Z_DATA_ERROR) { - fprintf(stderr, "inflate should report DATA_ERROR\n"); - /* Because of incorrect adler32 */ + if (err != Z_STREAM_END) { + fprintf(stderr, "inflate should report Z_STREAM_END\n"); exit(1); } err = inflateEnd(&d_stream); |