Home
last modified time | relevance | path

Searched refs:CuAssertIntEquals (Results 1 – 13 of 13) sorted by relevance

/external/selinux/libsepol/cil/test/unit/
Dtest_cil_lexer.c46 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_lexer_setup()
64 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_lexer_next()
66 CuAssertIntEquals(tc, OPAREN, test_tok.type); in test_cil_lexer_next()
68 CuAssertIntEquals(tc, 1, test_tok.line); in test_cil_lexer_next()
71 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_lexer_next()
73 CuAssertIntEquals(tc, SYMBOL, test_tok.type); in test_cil_lexer_next()
75 CuAssertIntEquals(tc, 1, test_tok.line); in test_cil_lexer_next()
78 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_lexer_next()
80 CuAssertIntEquals(tc, QSTRING, test_tok.type); in test_cil_lexer_next()
82 CuAssertIntEquals(tc, 1, test_tok.line); in test_cil_lexer_next()
[all …]
Dtest_cil_copy_ast.c71 CuAssertIntEquals(tc, rc, SEPOL_OK); 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()
93 CuAssertIntEquals(tc, rc, SEPOL_OK); in test_cil_copy_list_sublist()
97 CuAssertIntEquals(tc, copy_list->head->flavor, cil_l->head->flavor); in test_cil_copy_list_sublist()
98 CuAssertIntEquals(tc, copy_list->head->next->flavor, cil_l->head->next->flavor); in test_cil_copy_list_sublist()
99CuAssertIntEquals(tc, ((struct cil_list *)copy_list->head->next->next->data)->head->flavor, ((stru… in test_cil_copy_list_sublist()
117 CuAssertIntEquals(tc, rc, SEPOL_OK); in test_cil_copy_list_sublist_extra()
122 CuAssertIntEquals(tc, copy_list->head->flavor, cil_l->head->flavor); in test_cil_copy_list_sublist_extra()
123 CuAssertIntEquals(tc, copy_list->head->next->flavor, cil_l->head->next->flavor); in test_cil_copy_list_sublist_extra()
[all …]
Dtest_integration.c58 CuAssertIntEquals(tc, 1, WIFEXITED(status)); in test_integration()
59 CuAssertIntEquals(tc, 0, WEXITSTATUS(status)); in test_integration()
60 CuAssertIntEquals(tc, 1, WIFEXITED(status1)); in test_integration()
61 CuAssertIntEquals(tc, 0, WEXITSTATUS(status1)); in test_integration()
62 CuAssertIntEquals(tc, 1, WIFEXITED(status2)); in test_integration()
63 CuAssertIntEquals(tc, 0, WEXITSTATUS(status2)); in test_integration()
74 CuAssertIntEquals(tc, 1, WIFEXITED(status)); in test_min_policy()
75 CuAssertIntEquals(tc, 0, WEXITSTATUS(status)); in test_min_policy()
Dtest_cil_resolve_ast.c87 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_resolve_name()
111 CuAssertIntEquals(tc, SEPOL_ENOENT, rc); in test_cil_resolve_name_invalid_type_neg()
121 CuAssertIntEquals(tc, SEPOL_ERR, rc); in test_cil_resolve_ast_curr_null_neg()
146 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_resolve_roleallow()
166 CuAssertIntEquals(tc, SEPOL_ENOENT, rc); in test_cil_resolve_roleallow_srcdecl_neg()
185 CuAssertIntEquals(tc, SEPOL_ENOENT, rc); in test_cil_resolve_roleallow_tgtdecl_neg()
205 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_resolve_classmapping_anon()
238 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_resolve_classmapping_anon_inmacro()
239 CuAssertIntEquals(tc, SEPOL_OK, rc2); in test_cil_resolve_classmapping_anon_inmacro()
240 CuAssertIntEquals(tc, SEPOL_OK, rc3); in test_cil_resolve_classmapping_anon_inmacro()
[all …]
Dtest_cil_list.c73 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_list_append_item()
108 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_list_append_item_append()
109 CuAssertIntEquals(tc, SEPOL_OK, rc2); in test_cil_list_append_item_append()
149 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_list_append_item_append_extra()
150 CuAssertIntEquals(tc, SEPOL_OK, rc2); in test_cil_list_append_item_append_extra()
151 CuAssertIntEquals(tc, SEPOL_OK, rc3); in test_cil_list_append_item_append_extra()
178 CuAssertIntEquals(tc, SEPOL_ERR, rc); in test_cil_list_append_item_listnull_neg()
202 CuAssertIntEquals(tc, SEPOL_ERR, rc); in test_cil_list_append_item_itemnull_neg()
230 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_list_prepend_item()
259 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_list_prepend_item_prepend()
[all …]
Dtest_cil_tree.c48 CuAssertIntEquals(tc, 0, test_node->flavor); in test_cil_tree_node_init()
49 CuAssertIntEquals(tc, 0, test_node->line); in test_cil_tree_node_init()
59 CuAssertIntEquals(tc, SEPOL_OK, rc); 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()
Dtest_cil.c74 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_get_symtab_block()
92 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_get_symtab_class()
110 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_get_symtab_root()
128 CuAssertIntEquals(tc, SEPOL_ERR, rc); in test_cil_get_symtab_flavor_neg()
145 CuAssertIntEquals(tc, SEPOL_ERR, rc); in test_cil_get_symtab_null_neg()
158 CuAssertIntEquals(tc, SEPOL_ERR, rc); in test_cil_get_symtab_node_null_neg()
176 CuAssertIntEquals(tc, SEPOL_ERR, rc); in test_cil_get_symtab_parent_null_neg()
Dtest_cil_fqn.c58 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_qualify_name()
74 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_qualify_name_cil_flavor()
Dtest_cil_parser.c53 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_parser()
Dtest_cil_symtab.c60 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_symtab_insert()
DCuTest.h105 #define CuAssertIntEquals(tc,ex,ac) CuAssertIntEquals_LineMsg((tc),__FILE__,__LINE__,NULL… macro
Dtest_cil_post.c203 CuAssertIntEquals(tc, 0, rc); in test_cil_post_filecon_compare_equal()
359 CuAssertIntEquals(tc, 0, rc); in test_cil_post_genfscon_compare_equal()
DCilTest.c140 CuAssertIntEquals(tc, 0, rc); in test_symtab_init()
152 CuAssertIntEquals(tc, -1, rc); in test_symtab_init_no_table_neg()