Home
last modified time | relevance | path

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

/external/selinux/libsepol/cil/test/unit/
Dtest_cil_build_ast.c212 struct cil_tree_node *test_ast_node; in test_cil_gen_block() local
213 cil_tree_node_init(&test_ast_node); in test_cil_gen_block()
218 test_ast_node->parent = test_db->ast->root; in test_cil_gen_block()
219 test_ast_node->line = 1; in test_cil_gen_block()
221 int rc = cil_gen_block(test_db, test_tree->root->cl_head->cl_head, test_ast_node, 0); in test_cil_gen_block()
223 CuAssertPtrNotNull(tc, test_ast_node->data); in test_cil_gen_block()
224 CuAssertIntEquals(tc, ((struct cil_block*)test_ast_node->data)->is_abstract, 0); in test_cil_gen_block()
225 CuAssertIntEquals(tc, test_ast_node->flavor, CIL_BLOCK); in test_cil_gen_block()
234 struct cil_tree_node *test_ast_node; in test_cil_gen_block_justblock_neg() local
235 cil_tree_node_init(&test_ast_node); in test_cil_gen_block_justblock_neg()
[all …]
Dtest_cil.c63 struct cil_tree_node *test_ast_node; in test_cil_get_symtab_block() local
64 cil_tree_node_init(&test_ast_node); in test_cil_get_symtab_block()
69 test_ast_node->parent = test_db->ast->root; in test_cil_get_symtab_block()
70 test_ast_node->parent->flavor = CIL_BLOCK; in test_cil_get_symtab_block()
71 test_ast_node->line = 1; in test_cil_get_symtab_block()
73 int rc = cil_get_symtab(test_db, test_ast_node->parent, &symtab, CIL_SYM_BLOCKS); in test_cil_get_symtab_block()
81 struct cil_tree_node *test_ast_node; in test_cil_get_symtab_class() local
82 cil_tree_node_init(&test_ast_node); in test_cil_get_symtab_class()
87 test_ast_node->parent = test_db->ast->root; in test_cil_get_symtab_class()
88 test_ast_node->parent->flavor = CIL_CLASS; in test_cil_get_symtab_class()
[all …]
Dtest_cil_copy_ast.c150 struct cil_tree_node *test_ast_node; in test_cil_copy_block() local
151 cil_tree_node_init(&test_ast_node); in test_cil_copy_block()
156 test_ast_node->parent = test_db->ast->root; in test_cil_copy_block()
157 test_ast_node->line = 1; in test_cil_copy_block()
159 cil_gen_block(test_db, test_tree->root->cl_head->cl_head, test_ast_node, 0); in test_cil_copy_block()
167 int rc = cil_copy_block(test_db, test_ast_node->data, &test_copy->data, &sym); in test_cil_copy_block()
177 struct cil_tree_node *test_ast_node; in test_cil_copy_perm() local
178 cil_tree_node_init(&test_ast_node); in test_cil_copy_perm()
191 test_ast_node->parent = new_tree_node; in test_cil_copy_perm()
192 test_ast_node->line = 1; in test_cil_copy_perm()
[all …]
Dtest_cil_list.c54 struct cil_tree_node *test_ast_node; in test_cil_list_append_item() local
55 cil_tree_node_init(&test_ast_node); in test_cil_list_append_item()
60 test_ast_node->parent = test_db->ast->root; in test_cil_list_append_item()
61 test_ast_node->line = 1; in test_cil_list_append_item()
82 struct cil_tree_node *test_ast_node; in test_cil_list_append_item_append() local
83 cil_tree_node_init(&test_ast_node); in test_cil_list_append_item_append()
88 test_ast_node->parent = test_db->ast->root; in test_cil_list_append_item_append()
89 test_ast_node->line = 1; in test_cil_list_append_item_append()
118 struct cil_tree_node *test_ast_node; in test_cil_list_append_item_append_extra() local
119 cil_tree_node_init(&test_ast_node); in test_cil_list_append_item_append_extra()
[all …]
Dtest_cil_symtab.c44 struct cil_tree_node *test_ast_node; in test_cil_symtab_insert() local
45 cil_tree_node_init(&test_ast_node); in test_cil_symtab_insert()
50 test_ast_node->parent = test_db->ast->root; in test_cil_symtab_insert()
51 test_ast_node->line = 1; in test_cil_symtab_insert()
57 cil_get_symtab(test_db, test_ast_node->parent, &test_symtab, CIL_SYM_BLOCKS); in test_cil_symtab_insert()
59 …insert(test_symtab, (hashtab_key_t)test_name, (struct cil_symtab_datum*)test_block, test_ast_node); in test_cil_symtab_insert()
Dtest_cil_resolve_ast.c9968 struct cil_tree_node *test_ast_node; in test_cil_resolve_ast_node_helper_userbounds() local
9969 cil_tree_node_init(&test_ast_node); in test_cil_resolve_ast_node_helper_userbounds()
9993 struct cil_tree_node *test_ast_node; in test_cil_resolve_ast_node_helper_userbounds_neg() local
9994 cil_tree_node_init(&test_ast_node); in test_cil_resolve_ast_node_helper_userbounds_neg()
10019 struct cil_tree_node *test_ast_node; in test_cil_resolve_ast_node_helper_roletype() local
10020 cil_tree_node_init(&test_ast_node); in test_cil_resolve_ast_node_helper_roletype()
10044 struct cil_tree_node *test_ast_node; in test_cil_resolve_ast_node_helper_roletype_role_neg() local
10045 cil_tree_node_init(&test_ast_node); in test_cil_resolve_ast_node_helper_roletype_role_neg()
10069 struct cil_tree_node *test_ast_node; in test_cil_resolve_ast_node_helper_roletype_type_neg() local
10070 cil_tree_node_init(&test_ast_node); in test_cil_resolve_ast_node_helper_roletype_type_neg()
[all …]