summaryrefslogtreecommitdiff
path: root/test/example.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/example.c')
-rw-r--r--test/example.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/example.c b/test/example.c
index 90de07e..148b276 100644
--- a/test/example.c
+++ b/test/example.c
@@ -939,6 +939,12 @@ void test_deflate_set_header(unsigned char *compr, size_t comprLen) {
CHECK_ERR(err, "deflateInit2");
head->text = 1;
+ head->comment = (uint8_t *)"comment";
+ head->name = (uint8_t *)"name";
+ head->hcrc = 1;
+ head->extra = (uint8_t *)"extra";
+ head->extra_len = (uint32_t)strlen((const char *)head->extra);
+
err = PREFIX(deflateSetHeader)(&c_stream, head);
CHECK_ERR(err, "deflateSetHeader");
if (err == Z_OK) {