From 21c40058198cc605e5eaa5df529719aeba1185f5 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sun, 19 Oct 2025 21:03:01 +0100 Subject: [PATCH] test: io: update to use new object system --- io-test/io-units.c | 5 ++--- io-test/mkdir.c | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/io-test/io-units.c b/io-test/io-units.c index 0fa8fb1..f346aae 100644 --- a/io-test/io-units.c +++ b/io-test/io-units.c @@ -1,7 +1,6 @@ #include #include #include -#include #include void test_path_1(CuTest *tc) @@ -11,7 +10,7 @@ void test_path_1(CuTest *tc) b_stringstream str; b_stringstream_begin(&str, buf, sizeof buf); - b_to_string(B_DSREF(path), (b_stream *)&str); + b_object_to_string(path, (b_stream *)&str); printf("%s\n", buf); @@ -23,7 +22,7 @@ void test_path_1(CuTest *tc) b_path *path4 = b_path_join(paths, sizeof paths / sizeof paths[0]); b_stringstream_begin(&str, buf, sizeof buf); - b_to_string(B_DSREF(path4), (b_stream *)&str); + b_object_to_string(path4, (b_stream *)&str); printf("%s\n", buf); } diff --git a/io-test/mkdir.c b/io-test/mkdir.c index ea43964..3094bc6 100644 --- a/io-test/mkdir.c +++ b/io-test/mkdir.c @@ -1,4 +1,5 @@ #include +#include int main(int argc, const char **argv) { @@ -16,6 +17,6 @@ int main(int argc, const char **argv) return -1; } - b_directory_release(dir); + b_directory_unref(dir); return 0; }