test: update to use new object system

This commit is contained in:
2025-10-19 21:02:30 +01:00
parent 34c54eb545
commit 2773ecbd71
2 changed files with 6 additions and 6 deletions

View File

@@ -26,7 +26,7 @@ int main(int argc, const char **argv)
b_serial_ctx *ctx;
b_serial_ctx_create(&ctx);
b_dsref *data = NULL;
b_object *data = NULL;
b_status status = b_serial_ctx_deserialise(
ctx, B_SERIAL_FORMAT_TOML, src_stream, &data, 0);
if (!B_OK(status)) {
@@ -38,10 +38,10 @@ int main(int argc, const char **argv)
return 0;
}
b_to_string(B_DSREF(data), b_stdout);
b_object_to_string(data, b_stdout);
b_stream_write_char(b_stdout, '\n');
b_release(data);
b_object_unref(data);
b_serial_ctx_destroy(ctx);
return 0;