--- a/src/server/test/vfs.c Mon Feb 10 17:44:51 2025 +0100 +++ b/src/server/test/vfs.c Sun Mar 02 18:10:52 2025 +0100 @@ -56,7 +56,7 @@ typedef struct TestVFSDir { VFSDir dir; TestVFSFile *file; - CxIterator i; + CxMapIterator i; cxmutstr name; } TestVFSDir; @@ -321,7 +321,7 @@ return 1; } - CxIterator i = cxMapIteratorValues(vfs->files); + CxMapIterator i = cxMapIteratorValues(vfs->files); cx_foreach(TestVFSFile *, f, i) { if(f->path.length > dir->path.length && cx_strprefix(cx_strcast(f->path), cx_strcast(dir->path))){ return 1; // dir not empty @@ -454,13 +454,13 @@ cxMapPut(files, cx_hash_key_str(entry.name), dir); } - UCX_TEST_ASSERT(files->size == 4, "wrong files count"); + UCX_TEST_ASSERT(cxMapSize(files)== 4, "wrong files count"); UCX_TEST_ASSERT(cxMapGet(files, cx_hash_key_str("file1")), "file1 missing"); UCX_TEST_ASSERT(cxMapGet(files, cx_hash_key_str("file2")), "file2 missing"); UCX_TEST_ASSERT(cxMapGet(files, cx_hash_key_str("file3")), "file3 missing"); UCX_TEST_ASSERT(cxMapGet(files, cx_hash_key_str("file4")), "file4 missing"); - cxMapDestroy(files); + cxMapFree(files); UCX_TEST_END;