summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJinWang An <jinwang.an@samsung.com>2023-01-02 17:15:51 +0900
committerJinWang An <jinwang.an@samsung.com>2023-01-02 17:15:51 +0900
commit03192945aa8580114f0f92f46c8f0e707049ffaa (patch)
tree763ea8bac652ceffb2593abbdf3adaa425ed6773 /test
parentc3bd529aa71a18cceccb144ffd59c0a7956f1970 (diff)
downloadzlib-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.c5
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);