Lines Matching defs:bools
58 static void test_cond_expr_mapping(policydb_t * p, avrule_decl_t * d, test_cond_expr_t * bools, int len)
71 CU_ASSERT(expr->expr_type == bools[i].expr_type);
72 if (bools[i].bool) {
73 CU_ASSERT(strcmp(p->sym_val_to_name[SYM_BOOLS][expr->bool - 1], bools[i].bool) == 0);
92 test_cond_expr_t bools[2];
103 bools[0].bool = "g_b_bool_1";
104 bools[0].expr_type = COND_BOOL;
105 test_cond_expr_mapping(base, d, bools, 1);
113 bools[0].bool = "o1_b_bool_1";
114 bools[0].expr_type = COND_BOOL;
115 test_cond_expr_mapping(base, d, bools, 1);
123 test_cond_expr_t bools[3];
131 bools[0].bool = "g_m1_bool_1";
132 bools[0].expr_type = COND_BOOL;
133 test_cond_expr_mapping(base, d, bools, 1);
141 bools[0].bool = "o1_m1_bool_1";
142 bools[0].expr_type = COND_BOOL;
143 test_cond_expr_mapping(base, d, bools, 1);
153 bools[0].bool = "g_m2_bool_1";
154 bools[0].expr_type = COND_BOOL;
155 bools[1].bool = "g_m2_bool_2";
156 bools[1].expr_type = COND_BOOL;
157 bools[2].bool = NULL;
158 bools[2].expr_type = COND_AND;
159 test_cond_expr_mapping(base, d, bools, 3);