test: io: update to use new object system

This commit is contained in:
2025-10-19 21:03:01 +01:00
parent 25dc4038df
commit 21c4005819
2 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,6 @@
#include <CuTest.h>
#include <blue/core/stringstream.h>
#include <blue/io/path.h>
#include <blue/ds/object.h>
#include <stdio.h>
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);
}

View File

@@ -1,4 +1,5 @@
#include <blue/io/directory.h>
#include <blue/io/path.h>
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;
}