Searched refs:cil_l (Results 1 – 2 of 2) sorted by relevance
/external/selinux/libsepol/cil/test/unit/ |
D | test_cil_copy_ast.c | 60 struct cil_list *cil_l; in test_cil_copy_list() local 63 cil_list_init(&cil_l); in test_cil_copy_list() 65 cil_set_to_list(test_tree->root->cl_head, cil_l, 1); in test_cil_copy_list() 70 int rc =cil_copy_list(cil_l, ©_list); in test_cil_copy_list() 72 CuAssertStrEquals(tc, copy_list->head->data, cil_l->head->data); in test_cil_copy_list() 73 CuAssertStrEquals(tc, copy_list->head->next->data, cil_l->head->next->data); in test_cil_copy_list() 74 CuAssertIntEquals(tc, copy_list->head->flavor, cil_l->head->flavor); in test_cil_copy_list() 75 CuAssertIntEquals(tc, copy_list->head->next->flavor, cil_l->head->next->flavor); in test_cil_copy_list() 82 struct cil_list *cil_l; in test_cil_copy_list_sublist() local 85 cil_list_init(&cil_l); in test_cil_copy_list_sublist() [all …]
|
D | test_cil_build_ast.c | 158 struct cil_list *cil_l = NULL; in test_cil_set_to_list() local 162 cil_list_init(&cil_l); in test_cil_set_to_list() 164 int rc = cil_set_to_list(test_tree->root->cl_head, cil_l, 1); in test_cil_set_to_list() 165 sub_list = (struct cil_list *)cil_l->head->next->next->data; in test_cil_set_to_list() 168 CuAssertStrEquals(tc, "foo1", (char*)cil_l->head->data); in test_cil_set_to_list() 169 CuAssertStrEquals(tc, "foo2", (char*)cil_l->head->next->data); in test_cil_set_to_list() 174 struct cil_list *cil_l = NULL; in test_cil_set_to_list_tree_node_null_neg() local 175 int rc = cil_set_to_list(NULL, cil_l, 1); in test_cil_set_to_list_tree_node_null_neg() 183 struct cil_list *cil_l; in test_cil_set_to_list_cl_head_null_neg() local 186 cil_list_init(&cil_l); in test_cil_set_to_list_cl_head_null_neg() [all …]
|