diff options
author | JinWang An <jinwang.an@samsung.com> | 2023-01-02 17:15:51 +0900 |
---|---|---|
committer | JinWang An <jinwang.an@samsung.com> | 2023-01-02 17:15:51 +0900 |
commit | 03192945aa8580114f0f92f46c8f0e707049ffaa (patch) | |
tree | 763ea8bac652ceffb2593abbdf3adaa425ed6773 /test | |
parent | c3bd529aa71a18cceccb144ffd59c0a7956f1970 (diff) | |
download | zlib-03192945aa8580114f0f92f46c8f0e707049ffaa.tar.gz zlib-03192945aa8580114f0f92f46c8f0e707049ffaa.tar.bz2 zlib-03192945aa8580114f0f92f46c8f0e707049ffaa.zip |
Imported Upstream version 1.2.12upstream/1.2.12
Diffstat (limited to 'test')
-rw-r--r-- | test/example.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/example.c b/test/example.c index eee17ce..949f4f6 100644 --- a/test/example.c +++ b/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); |