未验证 提交 95462c8f 编写于 作者: O openharmony_ci 提交者: Gitee

!1899 zlib bug

Merge pull request !1899 from dujingcheng/zlibbug
......@@ -975,7 +975,7 @@ HWTEST_F(ActsZlibTest, ActsZlibTestGzOffset64, Function | MediumTest | Level2)
file = gzopen(TESTFILE, "rb");
ASSERT_TRUE(file != NULL);
err = gzoffset64(file);
ASSERT_TRUE(err != NULL);
ASSERT_TRUE(err != Z_OK);
gzclose(file);
#endif
}
......@@ -1312,7 +1312,7 @@ HWTEST_F(ActsZlibTest, ActsZlibTestGzInflateBack, Function | MediumTest | Level2
strm.next_in = uncompr;
strm.avail_in = 1;
err = inflateBack(&strm, pull, nullptr, push, &strm);
ASSERT_TRUE(err != NULL);
ASSERT_TRUE(err != Z_OK);
err = inflateBackEnd(&strm);
ASSERT_EQ(err, Z_OK);
#endif
......@@ -1341,7 +1341,7 @@ HWTEST_F(ActsZlibTest, ActsZlibTestInflateCodesUsed, Function | MediumTest | Lev
d_stream.avail_in = 0;
d_stream.next_out = uncompr;
err = inflateCodesUsed(&d_stream);
ASSERT_TRUE(err != Z_NULL);
ASSERT_TRUE(err != Z_OK);
free(compr);
free(uncompr);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册