Home
last modified time | relevance | path

Searched refs:test_tree (Results 1 – 6 of 6) sorted by relevance

/external/selinux/libsepol/cil/test/unit/
Dtest_cil_build_ast.c66 struct cil_tree *test_tree; in test_cil_parse_to_list() local
67 gen_test_tree(&test_tree, line); in test_cil_parse_to_list()
70 test_current = test_tree->root->cl_head->cl_head; in test_cil_parse_to_list()
97 struct cil_tree *test_tree; in test_cil_parse_to_list_currnull_neg() local
98 gen_test_tree(&test_tree, line); in test_cil_parse_to_list_currnull_neg()
101 test_current = test_tree->root->cl_head->cl_head; in test_cil_parse_to_list_currnull_neg()
128 struct cil_tree *test_tree; in test_cil_parse_to_list_listnull_neg() local
129 gen_test_tree(&test_tree, line); in test_cil_parse_to_list_listnull_neg()
132 test_current = test_tree->root->cl_head->cl_head; in test_cil_parse_to_list_listnull_neg()
157 struct cil_tree *test_tree; in test_cil_set_to_list() local
[all …]
Dtest_cil_resolve_ast.c71 struct cil_tree *test_tree; in test_cil_resolve_name() local
72 gen_test_tree(&test_tree, line); in test_cil_resolve_name()
80 cil_build_ast(test_db, test_tree->root, test_db->ast->root); in test_cil_resolve_name()
95 struct cil_tree *test_tree; in test_cil_resolve_name_invalid_type_neg() local
96 gen_test_tree(&test_tree, line); in test_cil_resolve_name_invalid_type_neg()
104 cil_build_ast(test_db, test_tree->root, test_db->ast->root); in test_cil_resolve_name_invalid_type_neg()
134 struct cil_tree *test_tree; in test_cil_resolve_roleallow() local
135 gen_test_tree(&test_tree, line); in test_cil_resolve_roleallow()
143 cil_build_ast(test_db, test_tree->root, test_db->ast->root); in test_cil_resolve_roleallow()
153 struct cil_tree *test_tree; in test_cil_resolve_roleallow_srcdecl_neg() local
[all …]
Dtest_cil_copy_ast.c59 struct cil_tree *test_tree; in test_cil_copy_list() local
62 gen_test_tree(&test_tree, line); in test_cil_copy_list()
65 cil_set_to_list(test_tree->root->cl_head, cil_l, 1); in test_cil_copy_list()
81 struct cil_tree *test_tree; in test_cil_copy_list_sublist() local
84 gen_test_tree(&test_tree, line); in test_cil_copy_list_sublist()
87 cil_set_to_list(test_tree->root->cl_head, cil_l, 1); in test_cil_copy_list_sublist()
105 struct cil_tree *test_tree; in test_cil_copy_list_sublist_extra() local
108 gen_test_tree(&test_tree, line); in test_cil_copy_list_sublist_extra()
111 cil_set_to_list(test_tree->root->cl_head, cil_l, 1); in test_cil_copy_list_sublist_extra()
131 struct cil_tree *test_tree; in test_cil_copy_list_orignull_neg() local
[all …]
Dtest_cil_list.c51 struct cil_tree *test_tree; in test_cil_list_append_item() local
52 gen_test_tree(&test_tree, line); in test_cil_list_append_item()
70 test_new_item->data = test_tree->root->cl_head->cl_head->next->cl_head; in test_cil_list_append_item()
79 struct cil_tree *test_tree; in test_cil_list_append_item_append() local
80 gen_test_tree(&test_tree, line); in test_cil_list_append_item_append()
98 test_new_item->data = test_tree->root->cl_head->cl_head->next->cl_head; in test_cil_list_append_item_append()
105 test_new_item->data = test_tree->root->cl_head->cl_head->next->cl_head->next; in test_cil_list_append_item_append()
115 struct cil_tree *test_tree; in test_cil_list_append_item_append_extra() local
116 gen_test_tree(&test_tree, line); in test_cil_list_append_item_append_extra()
134 test_new_item->data = test_tree->root->cl_head->cl_head->next->cl_head; in test_cil_list_append_item_append_extra()
[all …]
Dtest_cil_tree.c55 struct cil_tree *test_tree; in test_cil_tree_init() local
57 int rc = cil_tree_init(&test_tree); in test_cil_tree_init()
60 CuAssertPtrNotNull(tc, test_tree); in test_cil_tree_init()
61 CuAssertPtrEquals(tc, NULL, test_tree->root->cl_head); in test_cil_tree_init()
62 CuAssertPtrEquals(tc, NULL, test_tree->root->cl_tail); in test_cil_tree_init()
63 CuAssertPtrEquals(tc, NULL, test_tree->root->parent); in test_cil_tree_init()
64 CuAssertPtrEquals(tc, NULL, test_tree->root->data); in test_cil_tree_init()
65 CuAssertPtrEquals(tc, NULL, test_tree->root->next); in test_cil_tree_init()
66 CuAssertIntEquals(tc, 0, test_tree->root->flavor); in test_cil_tree_init()
67 CuAssertIntEquals(tc, 0, test_tree->root->line); in test_cil_tree_init()
[all …]
/external/libxml2/
Dtestapi.c1216 static int test_tree(void);
1269 test_ret += test_tree(); in testlibxml2()
24201 test_tree(void) { in test_tree() function
52152 if (!strcmp(module, "tree")) return(test_tree()); in test_module()