test: update tests

This commit is contained in:
2025-10-28 15:21:19 +00:00
parent 2d29713f57
commit 6639a84a78
9 changed files with 63 additions and 96 deletions

View File

@@ -19,12 +19,11 @@ int main(int argc, const char **argv)
return -1;
}
b_serial_ctx *ctx;
b_serial_ctx_create(&ctx);
/* TODO re-implement json support */
b_serial_ctx *ctx = NULL;
b_object *data;
b_status status = b_serial_ctx_deserialise(
ctx, B_SERIAL_FORMAT_JSON, src, &data, 0);
b_status status = b_serial_ctx_deserialise(ctx, src, &data, 0);
if (!B_OK(status)) {
fprintf(stderr, "cannot read data\n");
return -1;
@@ -35,7 +34,7 @@ int main(int argc, const char **argv)
b_object_unref(data);
b_object_unref(src);
b_serial_ctx_destroy(ctx);
b_serial_ctx_unref(ctx);
return 0;
}