Searched refs:test_new_db (Results 1 – 2 of 2) sorted by relevance
39 struct cil_db *test_new_db; in test_cil_symtab_array_init() local40 test_new_db = malloc(sizeof(*test_new_db)); in test_cil_symtab_array_init()42 cil_symtab_array_init(test_new_db->symtab, cil_sym_sizes[CIL_SYM_ARRAY_ROOT]); in test_cil_symtab_array_init()43 CuAssertPtrNotNull(tc, test_new_db->symtab); in test_cil_symtab_array_init()45 free(test_new_db); in test_cil_symtab_array_init()
133 struct cil_db *test_new_db; in test_symtab_init() local134 test_new_db = malloc(sizeof(*test_new_db)); in test_symtab_init()139 rc = symtab_init(&test_new_db->symtab[i], cil_sym_sizes[CIL_SYM_ARRAY_ROOT][i]); in test_symtab_init()144 free(test_new_db); in test_symtab_init()148 struct cil_db *test_new_db; in test_symtab_init_no_table_neg() local149 test_new_db = malloc(sizeof(*test_new_db)); in test_symtab_init_no_table_neg()151 int rc = symtab_init(&test_new_db->symtab[0], (uint32_t)SIZE_MAX); in test_symtab_init_no_table_neg()154 free(test_new_db); in test_symtab_init_no_table_neg()