diff options
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); |