Lines Matching refs:bools
57 void test_cond_expr_mapping(policydb_t * p, avrule_decl_t * d, test_cond_expr_t * bools, int len) in test_cond_expr_mapping() argument
70 CU_ASSERT(expr->expr_type == bools[i].expr_type); in test_cond_expr_mapping()
71 if (bools[i].bool) { in test_cond_expr_mapping()
72 CU_ASSERT(strcmp(p->sym_val_to_name[SYM_BOOLS][expr->bool - 1], bools[i].bool) == 0); in test_cond_expr_mapping()
91 test_cond_expr_t bools[2]; in base_cond_tests() local
102 bools[0].bool = "g_b_bool_1"; in base_cond_tests()
103 bools[0].expr_type = COND_BOOL; in base_cond_tests()
104 test_cond_expr_mapping(base, d, bools, 1); in base_cond_tests()
112 bools[0].bool = "o1_b_bool_1"; in base_cond_tests()
113 bools[0].expr_type = COND_BOOL; in base_cond_tests()
114 test_cond_expr_mapping(base, d, bools, 1); in base_cond_tests()
122 test_cond_expr_t bools[3]; in module_cond_tests() local
130 bools[0].bool = "g_m1_bool_1"; in module_cond_tests()
131 bools[0].expr_type = COND_BOOL; in module_cond_tests()
132 test_cond_expr_mapping(base, d, bools, 1); in module_cond_tests()
140 bools[0].bool = "o1_m1_bool_1"; in module_cond_tests()
141 bools[0].expr_type = COND_BOOL; in module_cond_tests()
142 test_cond_expr_mapping(base, d, bools, 1); in module_cond_tests()
152 bools[0].bool = "g_m2_bool_1"; in module_cond_tests()
153 bools[0].expr_type = COND_BOOL; in module_cond_tests()
154 bools[1].bool = "g_m2_bool_2"; in module_cond_tests()
155 bools[1].expr_type = COND_BOOL; in module_cond_tests()
156 bools[2].bool = NULL; in module_cond_tests()
157 bools[2].expr_type = COND_AND; in module_cond_tests()
158 test_cond_expr_mapping(base, d, bools, 3); in module_cond_tests()