Home | History | Annotate | Download | only in tests

Lines Matching defs:bools

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