tests/test_tree.c

changeset 1675
36c0fb2b60b2
parent 1607
0ecb13118cac
equal deleted inserted replaced
1674:8b0f162ac88e 1675:36c0fb2b60b2
2091 cx_testing_allocator_destroy(&talloc); 2091 cx_testing_allocator_destroy(&talloc);
2092 } 2092 }
2093 2093
2094 static void test_tree_remove_node_relink_mock( 2094 static void test_tree_remove_node_relink_mock(
2095 void *node, 2095 void *node,
2096 cx_attr_unused const void *oldp, 2096 CX_UNUSED const void *oldp,
2097 cx_attr_unused const void *newp 2097 CX_UNUSED const void *newp
2098 ) { 2098 ) {
2099 tree_node_file * n = node; 2099 tree_node_file * n = node;
2100 // this function fakes the relink logic in below test 2100 // this function fakes the relink logic in below test
2101 if (strcmp(n->path, "/usr/share/") == 0) { 2101 if (strcmp(n->path, "/usr/share/") == 0) {
2102 n->path = "/share/"; 2102 n->path = "/share/";

mercurial