Skip to content

Commit

Permalink
tests: adjust to new CFL API changes
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Apr 18, 2024
1 parent 3109d8b commit 26a47f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/decoding.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static int generate_dummy_array_attribute_set(struct cfl_array **out_array, size
}

cfl_array_append_string(array, "string value");
cfl_array_append_bytes(array, "\xFF\xEE\xFF\xEE\xCA\xFE", 6);
cfl_array_append_bytes(array, "\xFF\xEE\xFF\xEE\xCA\xFE", 6, CFL_FALSE);
cfl_array_append_bool(array, CTR_TRUE);
cfl_array_append_int64(array, 303456);
cfl_array_append_double(array, 1.23456);
Expand Down Expand Up @@ -164,7 +164,7 @@ static int generate_dummy_kvlist_attribute_set(struct cfl_kvlist **out_kvlist, s
return -3;
}

result = cfl_kvlist_insert_bytes(kvlist, "bytes value", "\xFE\xEE\xFF\xEE\xCA\xFE", 6);
result = cfl_kvlist_insert_bytes(kvlist, "bytes value", "\xFE\xEE\xFF\xEE\xCA\xFE", 6, CFL_FALSE);

if (result != 0) {
return -3;
Expand Down

0 comments on commit 26a47f3

Please sign in to comment.