summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2022-09-17 15:32:29 +0200
committerHans Kristian Rosbach <hk-github@circlestorm.org>2022-09-26 20:10:10 +0200
commitd38dd9240f2de436769c9ce9549e15cb0d0cfd32 (patch)
tree966302c74a0927f250e64eebcbb9345ef2354c80 /test
parent6057002d4832457b86eb38d7ae95d661aeeca464 (diff)
downloadProject-Tick-d38dd9240f2de436769c9ce9549e15cb0d0cfd32.tar.gz
Project-Tick-d38dd9240f2de436769c9ce9549e15cb0d0cfd32.zip
IBM Z DFLTCC: Fix updating strm.adler with inflate()
inflate() does not update strm.adler with DFLTCC. Add a missing assignment to dfltcc_inflate() to fix this. Note that deflate() is not affected. Also add a test to prevent regressions.
Diffstat (limited to 'test')
-rw-r--r--test/test_inflate_adler32.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_inflate_adler32.cc b/test/test_inflate_adler32.cc
index e17cf6b795..fb78bb1bfc 100644
--- a/test/test_inflate_adler32.cc
+++ b/test/test_inflate_adler32.cc
@@ -41,6 +41,8 @@ TEST(inflate, adler32) {
err = PREFIX(inflate)(&strm, Z_NO_FLUSH);
EXPECT_EQ(err, Z_STREAM_END);
+ EXPECT_EQ(strm.adler, 0x6b931030);
+
err = PREFIX(inflateEnd)(&strm);
EXPECT_EQ(err, Z_OK);