Home
last modified time | relevance | path

Searched refs:tc (Results 1 – 25 of 879) sorted by relevance

12345678910>>...36

/external/selinux/libsepol/cil/test/unit/
Dtest_cil_build_ast.h130 void test_cil_gen_classmap_perm_dbnull_neg(CuTest *tc);
131 void test_cil_gen_classmap_perm_currnull_neg(CuTest *tc);
132 void test_cil_gen_classmap_perm_astnull_neg(CuTest *tc);
138 void test_cil_gen_classmap_dbnull_neg(CuTest *tc);
139 void test_cil_gen_classmap_currnull_neg(CuTest *tc);
140 void test_cil_gen_classmap_astnull_neg(CuTest *tc);
149 void test_cil_gen_classmapping_dbnull_neg(CuTest *tc);
150 void test_cil_gen_classmapping_currnull_neg(CuTest *tc);
151 void test_cil_gen_classmapping_astnull_neg(CuTest *tc);
154 void test_cil_gen_common_dbnull_neg(CuTest *tc);
[all …]
Dtest_cil_copy_ast.h41 void test_cil_copy_node_helper_block(CuTest *tc);
42 void test_cil_copy_node_helper_block_merge(CuTest *tc);
45 void test_cil_copy_node_helper_perm(CuTest *tc);
46 void test_cil_copy_node_helper_perm_neg(CuTest *tc);
49 void test_cil_copy_node_helper_class(CuTest *tc);
50 void test_cil_copy_node_helper_class_dup_neg(CuTest *tc);
53 void test_cil_copy_node_helper_common(CuTest *tc);
54 void test_cil_copy_node_helper_common_dup_neg(CuTest *tc);
57 void test_cil_copy_node_helper_classcommon(CuTest *tc);
60 void test_cil_copy_node_helper_sid(CuTest *tc);
[all …]
Dtest_cil_post.h35 void test_cil_post_filecon_compare_meta_a_not_b(CuTest *tc);
36 void test_cil_post_filecon_compare_meta_b_not_a(CuTest *tc);
37 void test_cil_post_filecon_compare_meta_a_and_b_strlen_a_greater_b(CuTest *tc);
38 void test_cil_post_filecon_compare_meta_a_and_b_strlen_b_greater_a(CuTest *tc);
39 void test_cil_post_filecon_compare_type_atype_greater_btype(CuTest *tc);
40 void test_cil_post_filecon_compare_type_btype_greater_atype(CuTest *tc);
41 void test_cil_post_filecon_compare_stemlen_a_greater_b(CuTest *tc);
42 void test_cil_post_filecon_compare_stemlen_b_greater_a(CuTest *tc);
43 void test_cil_post_filecon_compare_equal(CuTest *tc);
45 void test_cil_post_portcon_compare_atotal_greater_btotal(CuTest *tc);
[all …]
Dtest_cil_resolve_ast.h41 void test_cil_resolve_rolebounds(CuTest *tc);
42 void test_cil_resolve_rolebounds_exists_neg(CuTest *tc);
43 void test_cil_resolve_rolebounds_role1_neg(CuTest *tc);
44 void test_cil_resolve_rolebounds_role2_neg(CuTest *tc);
218 void test_cil_resolve_ast_node_helper_filecon(CuTest *tc);
219 void test_cil_resolve_ast_node_helper_filecon_neg(CuTest *tc);
225 void test_cil_resolve_ast_node_helper_portcon(CuTest *tc);
226 void test_cil_resolve_ast_node_helper_portcon_neg(CuTest *tc);
232 void test_cil_resolve_ast_node_helper_genfscon(CuTest *tc);
233 void test_cil_resolve_ast_node_helper_genfscon_neg(CuTest *tc);
[all …]
Dtest_cil_build_ast.c63 void test_cil_parse_to_list(CuTest *tc) { in test_cil_parse_to_list() argument
89 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_parse_to_list()
94 void test_cil_parse_to_list_currnull_neg(CuTest *tc) { in test_cil_parse_to_list_currnull_neg() argument
120 CuAssertIntEquals(tc, SEPOL_ERR, rc); in test_cil_parse_to_list_currnull_neg()
125 void test_cil_parse_to_list_listnull_neg(CuTest *tc) { in test_cil_parse_to_list_listnull_neg() argument
149 CuAssertIntEquals(tc, SEPOL_ERR, rc); in test_cil_parse_to_list_listnull_neg()
154 void test_cil_set_to_list(CuTest *tc) { in test_cil_set_to_list() argument
167 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_set_to_list()
168 CuAssertStrEquals(tc, "foo1", (char*)cil_l->head->data); in test_cil_set_to_list()
169 CuAssertStrEquals(tc, "foo2", (char*)cil_l->head->next->data); in test_cil_set_to_list()
[all …]
Dtest_cil_copy_ast.c56 void test_cil_copy_list(CuTest *tc) { in test_cil_copy_list() argument
71 CuAssertIntEquals(tc, rc, SEPOL_OK); in test_cil_copy_list()
72 CuAssertStrEquals(tc, copy_list->head->data, cil_l->head->data); in test_cil_copy_list()
73 CuAssertStrEquals(tc, copy_list->head->next->data, cil_l->head->next->data); in test_cil_copy_list()
74 CuAssertIntEquals(tc, copy_list->head->flavor, cil_l->head->flavor); in test_cil_copy_list()
75 CuAssertIntEquals(tc, copy_list->head->next->flavor, cil_l->head->next->flavor); in test_cil_copy_list()
78 void test_cil_copy_list_sublist(CuTest *tc) { in test_cil_copy_list_sublist() argument
93 CuAssertIntEquals(tc, rc, SEPOL_OK); in test_cil_copy_list_sublist()
94 CuAssertStrEquals(tc, copy_list->head->data, cil_l->head->data); in test_cil_copy_list_sublist()
95 CuAssertStrEquals(tc, copy_list->head->next->data, cil_l->head->next->data); in test_cil_copy_list_sublist()
[all …]
DCuTest.h78 void CuTestRun(CuTest* tc);
82 void CuFail_Line(CuTest* tc, const char* file, int line, const char* message2, const char* message);
83 void CuAssert_Line(CuTest* tc, const char* file, int line, const char* message, int condition);
84 void CuAssertStrEquals_LineMsg(CuTest* tc,
87 void CuAssertIntEquals_LineMsg(CuTest* tc,
90 void CuAssertDblEquals_LineMsg(CuTest* tc,
93 void CuAssertPtrEquals_LineMsg(CuTest* tc,
99 #define CuFail(tc, ms) CuFail_Line( (tc), __FILE__, __LINE__, NULL, (ms)) argument
100 #define CuAssert(tc, ms, cond) CuAssert_Line((tc), __FILE__, __LINE__, (ms), (cond)) argument
101 #define CuAssertTrue(tc, cond) CuAssert_Line((tc), __FILE__, __LINE__, "assert faile… argument
[all …]
Dtest_cil_lexer.c37 void test_cil_lexer_setup(CuTest *tc) { in test_cil_lexer_setup() argument
46 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_lexer_setup()
51 void test_cil_lexer_next(CuTest *tc) { in test_cil_lexer_next() argument
64 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_lexer_next()
66 CuAssertIntEquals(tc, OPAREN, test_tok.type); in test_cil_lexer_next()
67 CuAssertStrEquals(tc, "(", test_tok.value); in test_cil_lexer_next()
68 CuAssertIntEquals(tc, 1, test_tok.line); in test_cil_lexer_next()
71 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_lexer_next()
73 CuAssertIntEquals(tc, SYMBOL, test_tok.type); in test_cil_lexer_next()
74 CuAssertStrEquals(tc, "test", test_tok.value); in test_cil_lexer_next()
[all …]
Dtest_cil_post.c39 void test_cil_post_filecon_compare_meta_a_not_b(CuTest *tc) { in test_cil_post_filecon_compare_meta_a_not_b() argument
54 CuAssertTrue(tc, rc < 0); in test_cil_post_filecon_compare_meta_a_not_b()
57 void test_cil_post_filecon_compare_meta_b_not_a(CuTest *tc) { in test_cil_post_filecon_compare_meta_b_not_a() argument
72 CuAssertTrue(tc, rc > 0); in test_cil_post_filecon_compare_meta_b_not_a()
75 void test_cil_post_filecon_compare_meta_a_and_b_strlen_a_greater_b(CuTest *tc) { in test_cil_post_filecon_compare_meta_a_and_b_strlen_a_greater_b() argument
90 CuAssertTrue(tc, rc > 0); in test_cil_post_filecon_compare_meta_a_and_b_strlen_a_greater_b()
93 void test_cil_post_filecon_compare_type_atype_greater_btype(CuTest *tc) { in test_cil_post_filecon_compare_type_atype_greater_btype() argument
109 CuAssertTrue(tc, rc > 0); in test_cil_post_filecon_compare_type_atype_greater_btype()
112 void test_cil_post_filecon_compare_type_btype_greater_atype(CuTest *tc) { in test_cil_post_filecon_compare_type_btype_greater_atype() argument
129 CuAssertTrue(tc, rc < 0); in test_cil_post_filecon_compare_type_btype_greater_atype()
[all …]
Dtest_cil_tree.c37 void test_cil_tree_node_init(CuTest *tc) { in test_cil_tree_node_init() argument
42 CuAssertPtrNotNull(tc, test_node); in test_cil_tree_node_init()
43 CuAssertPtrEquals(tc, NULL, test_node->cl_head); in test_cil_tree_node_init()
44 CuAssertPtrEquals(tc, NULL, test_node->cl_tail); in test_cil_tree_node_init()
45 CuAssertPtrEquals(tc, NULL, test_node->parent); in test_cil_tree_node_init()
46 CuAssertPtrEquals(tc, NULL, test_node->data); in test_cil_tree_node_init()
47 CuAssertPtrEquals(tc, NULL, test_node->next); in test_cil_tree_node_init()
48 CuAssertIntEquals(tc, 0, test_node->flavor); in test_cil_tree_node_init()
49 CuAssertIntEquals(tc, 0, test_node->line); in test_cil_tree_node_init()
54 void test_cil_tree_init(CuTest *tc) { in test_cil_tree_init() argument
[all …]
Dtest_cil.c38 void test_cil_symtab_array_init(CuTest *tc) { in test_cil_symtab_array_init() argument
43 CuAssertPtrNotNull(tc, test_new_db->symtab); in test_cil_symtab_array_init()
48 void test_cil_db_init(CuTest *tc) { in test_cil_db_init() argument
53 CuAssertPtrNotNull(tc, test_db->ast); in test_cil_db_init()
54 CuAssertPtrNotNull(tc, test_db->symtab); in test_cil_db_init()
55 CuAssertPtrNotNull(tc, test_db->symtab); in test_cil_db_init()
60 void test_cil_get_symtab_block(CuTest *tc) { in test_cil_get_symtab_block() argument
74 CuAssertIntEquals(tc, SEPOL_OK, rc); in test_cil_get_symtab_block()
75 CuAssertPtrNotNull(tc, symtab); in test_cil_get_symtab_block()
78 void test_cil_get_symtab_class(CuTest *tc) { in test_cil_get_symtab_class() argument
[all …]
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_tile_cache.c42 sp_alloc_tile(struct softpipe_tile_cache *tc);
93 struct softpipe_tile_cache *tc; in sp_create_tile_cache() local
107 tc = CALLOC_STRUCT( softpipe_tile_cache ); in sp_create_tile_cache()
108 if (tc) { in sp_create_tile_cache()
109 tc->pipe = pipe; in sp_create_tile_cache()
110 for (pos = 0; pos < ARRAY_SIZE(tc->tile_addrs); pos++) { in sp_create_tile_cache()
111 tc->tile_addrs[pos].bits.invalid = 1; in sp_create_tile_cache()
113 tc->last_tile_addr.bits.invalid = 1; in sp_create_tile_cache()
118 tc->tile = MALLOC_STRUCT( softpipe_cached_tile ); in sp_create_tile_cache()
119 if (!tc->tile) in sp_create_tile_cache()
[all …]
Dsp_tex_tile_cache.c49 struct softpipe_tex_tile_cache *tc; in sp_create_tex_tile_cache() local
55 tc = CALLOC_STRUCT( softpipe_tex_tile_cache ); in sp_create_tex_tile_cache()
56 if (tc) { in sp_create_tex_tile_cache()
57 tc->pipe = pipe; in sp_create_tex_tile_cache()
58 for (pos = 0; pos < ARRAY_SIZE(tc->entries); pos++) { in sp_create_tex_tile_cache()
59 tc->entries[pos].addr.bits.invalid = 1; in sp_create_tex_tile_cache()
61 tc->last_tile = &tc->entries[0]; /* any tile */ in sp_create_tex_tile_cache()
63 return tc; in sp_create_tex_tile_cache()
68 sp_destroy_tex_tile_cache(struct softpipe_tex_tile_cache *tc) in sp_destroy_tex_tile_cache() argument
70 if (tc) { in sp_destroy_tex_tile_cache()
[all …]
/external/libnl/lib/route/
Dtc.c61 int rtnl_tc_msg_parse(struct nlmsghdr *n, struct rtnl_tc *tc) in rtnl_tc_msg_parse() argument
70 tc->ce_msgtype = n->nlmsg_type; in rtnl_tc_msg_parse()
80 rtnl_tc_set_kind(tc, kind); in rtnl_tc_msg_parse()
83 tc->tc_family = tm->tcm_family; in rtnl_tc_msg_parse()
84 tc->tc_ifindex = tm->tcm_ifindex; in rtnl_tc_msg_parse()
85 tc->tc_handle = tm->tcm_handle; in rtnl_tc_msg_parse()
86 tc->tc_parent = tm->tcm_parent; in rtnl_tc_msg_parse()
87 tc->tc_info = tm->tcm_info; in rtnl_tc_msg_parse()
89 tc->ce_mask |= (TCA_ATTR_FAMILY | TCA_ATTR_IFINDEX | TCA_ATTR_HANDLE| in rtnl_tc_msg_parse()
93 tc->tc_opts = nl_data_alloc_attr(tb[TCA_OPTIONS]); in rtnl_tc_msg_parse()
[all …]
/external/ltp/testcases/kernel/syscalls/membarrier/
Dmembarrier01.c43 struct test_case tc[] = { variable
285 if (!tc[i].enabled && !tc[i].force) { in verify_membarrier()
287 if (tc[i].always == 0) in verify_membarrier()
288 skipped(tc[i]); in verify_membarrier()
290 skipped_fail(tc[i]); in verify_membarrier()
295 if (tc[i].needregister && tc[i].enabled) { in verify_membarrier()
296 ret = sys_membarrier(tc[i].needregister, 0); in verify_membarrier()
299 tc[i].testname); in verify_membarrier()
303 TEST(sys_membarrier(tc[i].command, tc[i].flags)); in verify_membarrier()
307 if (tc[i].enabled && !tc[i].force) { in verify_membarrier()
[all …]
/external/expat/tests/
Dminicheck.c59 TCase *tc = (TCase *) calloc(1, sizeof(TCase)); in tcase_create() local
60 if (tc != NULL) { in tcase_create()
61 tc->name = name; in tcase_create()
63 return tc; in tcase_create()
67 suite_add_tcase(Suite *suite, TCase *tc) in suite_add_tcase() argument
70 assert(tc != NULL); in suite_add_tcase()
71 assert(tc->next_tcase == NULL); in suite_add_tcase()
73 tc->next_tcase = suite->tests; in suite_add_tcase()
74 suite->tests = tc; in suite_add_tcase()
78 tcase_add_checked_fixture(TCase *tc, in tcase_add_checked_fixture() argument
[all …]
/external/ltp/testcases/kernel/syscalls/mincore/
Dmincore01.c61 static void setup1(struct test_case_t *tc);
62 static void setup2(struct test_case_t *tc);
63 static void setup3(struct test_case_t *tc);
64 static void setup4(struct test_case_t *tc);
71 void (*setupfunc) (struct test_case_t *tc);
79 static void mincore_verify(struct test_case_t *tc);
102 static void setup1(struct test_case_t *tc) in setup1() argument
104 tc->addr = global_pointer + 1; in setup1()
105 tc->len = global_len; in setup1()
106 tc->vector = global_vec; in setup1()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_threaded_context.c74 tc_debug_check(struct threaded_context *tc) in tc_debug_check() argument
77 tc_batch_check(&tc->batch_slots[i]); in tc_debug_check()
78 tc_assert(tc->batch_slots[i].pipe == tc->pipe); in tc_debug_check()
104 tc_batch_flush(struct threaded_context *tc) in tc_batch_flush() argument
106 struct tc_batch *next = &tc->batch_slots[tc->next]; in tc_batch_flush()
110 tc_debug_check(tc); in tc_batch_flush()
111 p_atomic_add(&tc->num_offloaded_slots, next->num_total_call_slots); in tc_batch_flush()
114 next->token->tc = NULL; in tc_batch_flush()
118 util_queue_add_job(&tc->queue, next, &next->fence, tc_batch_execute, in tc_batch_flush()
120 tc->last = tc->next; in tc_batch_flush()
[all …]
/external/ltp/testcases/kernel/syscalls/fgetxattr/
Dfgetxattr02.c81 static struct test_case tc[] = { variable
163 const char *fname = strstr(tc[i].fname, "fgetxattr02") + OFFSET; in verify_fgetxattr()
165 TEST(fgetxattr(tc[i].fd, tc[i].key, tc[i].ret_value, tc[i].size)); in verify_fgetxattr()
172 if (tc[i].exp_ret == TST_RET) { in verify_fgetxattr()
181 if (strncmp(tc[i].ret_value, XATTR_TEST_VALUE, in verify_fgetxattr()
184 XATTR_TEST_VALUE, tc[i].ret_value); in verify_fgetxattr()
196 if (tc[i].exp_err == ENODATA && tst_kvercmp(3, 0, 0) < 0) in verify_fgetxattr()
197 tc[i].exp_err = EPERM; in verify_fgetxattr()
199 if (tc[i].exp_err == TST_ERR) { in verify_fgetxattr()
225 for (i = 0; i < ARRAY_SIZE(tc); i++) { in setup()
[all …]
/external/tensorflow/tensorflow/contrib/labeled_tensor/python/ops/
Dcore.py38 from tensorflow.contrib.labeled_tensor.python.ops import _typecheck as tc unknown
49 LabelsLike = tc.Union(np.ndarray, range, list, tuple)
52 DimensionLike = tc.Optional(tc.Union(tensor_shape.Dimension, int))
55 AxisValue = tc.Union(LabelsLike, DimensionLike)
58 Scalar = tc.Union(numbers.Number, bool, binary_type, text_type)
72 @tc.accepts(object, string_types, AxisValue)
113 @tc.returns(string_types)
117 @tc.returns(string_types)
123 @tc.returns(bool)
131 @tc.returns(bool)
[all …]
Dops.py26 from tensorflow.contrib.labeled_tensor.python.ops import _typecheck as tc unknown
39 @tc.returns(core.LabeledTensor)
40 @tc.accepts(core.LabeledTensor, ops.Tensor, core.Axis,
41 tc.Optional(string_types))
52 @tc.returns(core.LabeledTensor)
53 @tc.accepts(core.LabeledTensorLike,
54 tc.Mapping(string_types,
55 tc.Union(slice, collections.Hashable, list)),
56 tc.Optional(string_types))
145 @tc.returns(core.LabeledTensor)
[all …]
/external/ltp/testcases/kernel/syscalls/fsetxattr/
Dfsetxattr02.c73 static struct test_case tc[] = { variable
143 const char *fname = strstr(tc[i].fname, "fsetxattr02") + OFFSET; in verify_fsetxattr()
146 if (tc[i].needskeyset) { in verify_fsetxattr()
147 SAFE_FSETXATTR(tc[i].fd, tc[i].key, tc[i].value, tc[i].size, in verify_fsetxattr()
151 TEST(fsetxattr(tc[i].fd, tc[i].key, tc[i].value, tc[i].size, in verify_fsetxattr()
152 tc[i].flags)); in verify_fsetxattr()
159 if (!tc[i].exp_err) { in verify_fsetxattr()
168 SAFE_FREMOVEXATTR(tc[i].fd, tc[i].key); in verify_fsetxattr()
181 if (tc[i].exp_err != TST_ERR) { in verify_fsetxattr()
184 fname, tst_strerrno(tc[i].exp_err)); in verify_fsetxattr()
[all …]
/external/ltp/testcases/kernel/syscalls/mq_timedsend/
Dmq_timedsend01.c141 const struct test_case *tc = &tcase[i]; in do_test() local
148 if (tc->signal) in do_test()
149 pid = set_sig(tc->rq); in do_test()
151 if (tc->timeout) in do_test()
152 set_timeout(tc->rq); in do_test()
154 if (tc->send) { in do_test()
156 send_msg(*tc->fd, tc->len, tc->prio); in do_test()
159 TEST(mq_timedsend(*tc->fd, smsg, tc->len, tc->prio, tc->rq)); in do_test()
165 if (tc->err != TST_ERR) in do_test()
168 tst_strerrno(tc->err)); in do_test()
[all …]
/external/ltp/testcases/kernel/syscalls/setpriority/
Dsetpriority02.c67 static void setpriority_test(struct tcase *tc) in setpriority_test() argument
71 if (tc->unprivil) in setpriority_test()
74 TEST(setpriority(tc->which, tc->who, tc->prio)); in setpriority_test()
79 "returned %ld", tc->which, tc->who, tc->prio, desc, in setpriority_test()
84 if (TST_ERR != tc->exp_errno) { in setpriority_test()
87 tc->which, tc->who, tc->prio, desc, in setpriority_test()
88 tst_strerrno(tc->exp_errno)); in setpriority_test()
94 tc->which, tc->who, tc->prio, desc); in setpriority_test()
99 struct tcase *tc = &tcases[n]; in verify_setpriority() local
101 if (tc->unprivil) { in verify_setpriority()
[all …]
/external/ltp/testcases/kernel/syscalls/lseek/
Dlseek07.c52 struct tcase *tc = &tcases[n]; in verify_lseek() local
56 TEST(lseek(*tc->fd, tc->off, SEEK_SET)); in verify_lseek()
59 tc->fname, tc->off); in verify_lseek()
63 if (TST_RET != tc->exp_off) { in verify_lseek()
65 tc->fname, tc->off, TST_RET, tc->exp_off); in verify_lseek()
69 SAFE_WRITE(1, *tc->fd, WR_STR2, sizeof(WR_STR2) - 1); in verify_lseek()
71 SAFE_CLOSE(*tc->fd); in verify_lseek()
73 *tc->fd = SAFE_OPEN(tc->fname, O_RDWR); in verify_lseek()
75 SAFE_READ(1, *tc->fd, read_buf, tc->exp_size); in verify_lseek()
77 if (strcmp(read_buf, tc->exp_data)) { in verify_lseek()
[all …]

12345678910>>...36