• Home
  • Raw
  • Download

Lines Matching refs:bools

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