Home
last modified time | relevance | path

Searched refs:CU_ASSERT_FATAL (Results 1 – 14 of 14) sorted by relevance

/external/selinux/libsepol/tests/
Dtest-deps.c153 CU_ASSERT_FATAL(h != NULL); in do_deps_modreq_global()
164 CU_ASSERT_FATAL(test_load_policy(&mod, POLICY_MOD, mls, "test-deps", policy) == 0); in do_deps_modreq_global()
169 CU_ASSERT_FATAL(ret == link_ret); in do_deps_modreq_global()
177 CU_ASSERT_FATAL(decl != NULL); in do_deps_modreq_global()
236 CU_ASSERT_FATAL(h != NULL); in do_deps_modreq_opt()
245 CU_ASSERT_FATAL(test_load_policy(&mod, POLICY_MOD, mls, "test-deps", policy) == 0); in do_deps_modreq_opt()
250 CU_ASSERT_FATAL(ret == ret_val); in do_deps_modreq_opt()
257 CU_ASSERT_FATAL(decl != NULL); in do_deps_modreq_opt()
Dtest-linker-cond-map.c62 CU_ASSERT_FATAL(d->cond_list != NULL); in test_cond_expr_mapping()
63 CU_ASSERT_FATAL(d->cond_list->expr != NULL); in test_cond_expr_mapping()
68 CU_ASSERT_FATAL(expr != NULL); in test_cond_expr_mapping()
83 CU_ASSERT_FATAL(b != NULL); in test_bool_state()
Dhelpers.h36 #undef CU_ASSERT_FATAL
37 #define CU_ASSERT_FATAL(value) do { \ macro
Dtest-common.c43 CU_ASSERT_FATAL(scope != NULL); in test_sym_presence()
200 CU_ASSERT_FATAL(role != NULL); in test_role_type_set()
243 CU_ASSERT_FATAL(attr != NULL); in test_attr_types()
Dtest-expander-users.c48 CU_ASSERT_FATAL(found != NULL); in check_user_roles()
Dtest-linker-types.c109 CU_ASSERT_FATAL(type != NULL); in test_type_datum()
117 CU_ASSERT_FATAL(type != NULL); in test_type_datum()
/external/selinux/libsemanage/tests/
Dtest_user.c124 CU_ASSERT_FATAL(res >= 0); in get_user_nth()
125 CU_ASSERT_FATAL(count >= (unsigned int) idx + 1); in get_user_nth()
149 CU_ASSERT_FATAL(res >= 0); in get_user_key_nth()
160 CU_ASSERT_FATAL(user_idx != I_NULL); in add_local_user()
164 CU_ASSERT_FATAL(semanage_user_key_extract(sh, user, &key) >= 0); in add_local_user()
167 CU_ASSERT_FATAL(semanage_user_modify_local(sh, key, user) >= 0); in add_local_user()
174 CU_ASSERT_FATAL(user_idx != I_NULL); in delete_local_user()
178 CU_ASSERT_FATAL(semanage_user_del_local(sh, key) >= 0); in delete_local_user()
Dtest_ibendport.c107 CU_ASSERT_FATAL(semanage_ibendport_list(sh, &records, &count) >= 0); in get_ibendport_nth()
108 CU_ASSERT_FATAL(count >= (unsigned int) idx + 1); in get_ibendport_nth()
132 CU_ASSERT_FATAL(res >= 0); in get_ibendport_key_nth()
145 CU_ASSERT_FATAL(semanage_ibendport_key_extract(sh, ibendport, in add_local_ibendport()
149 CU_ASSERT_FATAL(semanage_ibendport_modify_local(sh, key, in add_local_ibendport()
157 CU_ASSERT_FATAL(semanage_ibendport_del_local(sh, key) >= 0); in delete_local_ibendport()
Dtest_bool.c126 CU_ASSERT_FATAL(res >= 0); in get_bool_nth()
127 CU_ASSERT_FATAL(count >= (unsigned int) idx + 1); in get_bool_nth()
145 CU_ASSERT_FATAL(res >= 0); in get_bool_new()
163 CU_ASSERT_FATAL(res >= 0); in get_bool_key_nth()
179 CU_ASSERT_FATAL(res >= 0); in get_bool_key_from_str()
192 CU_ASSERT_FATAL(semanage_bool_key_create(sh, name, &key) >= 0); in add_local_bool()
195 CU_ASSERT_FATAL(semanage_bool_query(sh, key, &boolean) >= 0); in add_local_bool()
198 CU_ASSERT_FATAL(semanage_bool_modify_local(sh, key, boolean) >= 0); in add_local_bool()
207 CU_ASSERT_FATAL(semanage_bool_key_create(sh, name, &key) >= 0); in delete_local_bool()
210 CU_ASSERT_FATAL(semanage_bool_del_local(sh, key) >= 0); in delete_local_bool()
Dtest_fcontext.c194 CU_ASSERT_FATAL(semanage_fcontext_create(sh, &fcontext) >= 0); in get_fcontext_new()
208 CU_ASSERT_FATAL(semanage_fcontext_list(sh, &records, &count) >= 0); in get_fcontext_nth()
209 CU_ASSERT_FATAL(count >= (unsigned int) idx + 1); in get_fcontext_nth()
230 CU_ASSERT_FATAL(semanage_fcontext_key_extract(sh, fcontext, &key) >= 0); in get_fcontext_key_nth()
241 CU_ASSERT_FATAL(fcontext_idx != I_NULL); in add_local_fcontext()
245 CU_ASSERT_FATAL(semanage_fcontext_key_extract(sh, fcontext, &key) >= 0); in add_local_fcontext()
248 CU_ASSERT_FATAL(semanage_fcontext_modify_local(sh, key, fcontext) >= 0); in add_local_fcontext()
255 CU_ASSERT_FATAL(fcontext_idx != I_NULL); in delete_local_fcontext()
259 CU_ASSERT_FATAL(semanage_fcontext_del_local(sh, key) >= 0); in delete_local_fcontext()
272 CU_ASSERT_FATAL(res >= 0); in get_fcontext_key_from_str()
Dutilities.h48 #undef CU_ASSERT_FATAL
49 #define CU_ASSERT_FATAL(value) do { \ macro
Dtest_port.c140 CU_ASSERT_FATAL(res >= 0); in get_port_nth()
141 CU_ASSERT_FATAL(count >= (unsigned int) idx + 1); in get_port_nth()
165 CU_ASSERT_FATAL(res >= 0); in get_port_key_nth()
176 CU_ASSERT_FATAL(port_idx != I_NULL); in add_local_port()
180 CU_ASSERT_FATAL(semanage_port_key_extract(sh, port, &key) >= 0); in add_local_port()
183 CU_ASSERT_FATAL(semanage_port_modify_local(sh, key, port) >= 0); in add_local_port()
190 CU_ASSERT_FATAL(port_idx != I_NULL); in delete_local_port()
194 CU_ASSERT_FATAL(semanage_port_del_local(sh, key) >= 0); in delete_local_port()
Dtest_iface.c133 CU_ASSERT_FATAL(res >= 0); in get_iface_nth()
134 CU_ASSERT_FATAL(count >= (unsigned int) idx + 1); in get_iface_nth()
157 CU_ASSERT_FATAL(res >= 0); in get_iface_key_nth()
170 CU_ASSERT_FATAL(semanage_iface_key_extract(sh, iface, &key) >= 0); in add_local_iface()
173 CU_ASSERT_FATAL(semanage_iface_modify_local(sh, key, iface) >= 0); in add_local_iface()
180 CU_ASSERT_FATAL(semanage_iface_del_local(sh, key) >= 0); in delete_local_iface()
Dtest_node.c142 CU_ASSERT_FATAL(semanage_node_list(sh, &records, &count) >= 0); in get_node_nth()
143 CU_ASSERT_FATAL(count >= (unsigned int) idx + 1); in get_node_nth()
167 CU_ASSERT_FATAL(res >= 0); in get_node_key_nth()
180 CU_ASSERT_FATAL(semanage_node_key_extract(sh, node, &key) >= 0); in add_local_node()
183 CU_ASSERT_FATAL(semanage_node_modify_local(sh, key, node) >= 0); in add_local_node()
192 CU_ASSERT_FATAL(semanage_node_del_local(sh, key) >= 0); in delete_local_node()