tests/test_tree.c

changeset 985
68754c7de906
parent 931
be71809e69d1
--- a/tests/test_tree.c	Thu Nov 07 20:22:56 2024 +0100
+++ b/tests/test_tree.c	Thu Nov 07 22:46:58 2024 +0100
@@ -1957,8 +1957,8 @@
 
 static void test_tree_remove_node_relink_mock(
         void *node,
-        __attribute__((__unused__)) const void *oldp,
-        __attribute__((__unused__)) const void *newp
+        cx_attr_unused const void *oldp,
+        cx_attr_unused const void *newp
 ) {
     tree_node_file * n = node;
     // this function fakes the relink logic in below test
@@ -2175,7 +2175,7 @@
         w->destructor_data = alloc;
         cxTreeDestroySubtree(w, w->root);
         CX_TEST_ASSERT(!cx_testing_allocator_verify(&talloc));
-        cxFree(alloc, w);
+        cxTreeDestroy(w);
         CX_TEST_ASSERT(cx_testing_allocator_verify(&talloc));
     }
     cx_testing_allocator_destroy(&talloc);

mercurial