提交 a03c769b 编写于 作者: L longwei

fix crash for zlib xts test

Signed-off-by: Nlongwei <longwei27@huawei.com>
Change-Id: Ic902287c2755eaf5c0d1507690ea7c4e8a4ec8a6
上级 67becab0
......@@ -1245,6 +1245,7 @@ HWTEST_F(ActsZlibTest, ActsZlibTestGzUnGetc, Function | MediumTest | Level2)
file = gzopen(TESTFILE, "rb");
ASSERT_TRUE(file != NULL);
ASSERT_FALSE(gzungetc(' ', file) != ' ');
gzclose(file);
#endif
}
......@@ -1264,6 +1265,7 @@ HWTEST_F(ActsZlibTest, ActsZlibTestGzVprintf, Function | MediumTest | Level2)
int err = TestGzPrintf(file, ", %s!", "hello");
fprintf(stderr, "gzvprintf result: %d\n", err);
gzclose(file);
#endif
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册