Home
last modified time | relevance | path

Searched refs:test_cases (Results 1 – 25 of 171) sorted by relevance

1234567

/external/ltp/testcases/kernel/syscalls/ioperm/
Dioperm02.c108 struct test_cases_t *test_cases; variable
134 TEST(ioperm(test_cases[i].from, in main()
135 test_cases[i].num, test_cases[i].turn_on)); in main()
138 (TEST_ERRNO == test_cases[i].exp_errno)) { in main()
140 "errno: %d", test_cases[i].desc, in main()
146 test_cases[i].desc, in main()
148 TEST_ERRNO, test_cases[i].exp_errno); in main()
204 test_cases = malloc(sizeof(struct test_cases_t) * 2); in setup()
205 test_cases[0].num = NUM_BYTES; in setup()
206 test_cases[0].turn_on = TURN_ON; in setup()
[all …]
/external/ltp/testcases/kernel/syscalls/getpeername/
Dgetpeername01.c61 } test_cases[] = { variable
81 int TST_TOTAL = ARRAY_SIZE(test_cases);
98 if (test_cases[i].setup != NULL) in main()
99 test_cases[i].setup(i); in main()
101 TEST(getpeername(test_cases[i].sockfd, in main()
102 test_cases[i].sockaddr, in main()
103 test_cases[i].addrlen)); in main()
105 if (TEST_RETURN == test_cases[i].expretval && in main()
106 TEST_ERRNO == test_cases[i].experrno) { in main()
109 test_cases[i].name); in main()
[all …]
/external/google-breakpad/src/testing/gtest/test/
Dgtest-unittest-api_test.cc59 TestCase const** const test_cases = in GetSortedTestCases() local
63 test_cases[i] = unit_test.GetTestCase(i); in GetSortedTestCases()
65 std::sort(test_cases, in GetSortedTestCases()
66 test_cases + unit_test.total_test_case_count(), in GetSortedTestCases()
68 return test_cases; in GetSortedTestCases()
123 const TestCase** const test_cases = UnitTestHelper::GetSortedTestCases(); in TEST() local
125 EXPECT_STREQ("ApiTest", test_cases[0]->name()); in TEST()
126 EXPECT_STREQ("DISABLED_Test", test_cases[1]->name()); in TEST()
128 EXPECT_STREQ("TestCaseWithCommentTest/0", test_cases[2]->name()); in TEST()
131 delete[] test_cases; in TEST()
[all …]
/external/ltp/testcases/kernel/syscalls/link/
Dlink04.c62 } test_cases[] = { variable
85 int TST_TOTAL = ARRAY_SIZE(test_cases);
107 fname1 = test_cases[i].file1; in main()
108 desc1 = test_cases[i].desc1; in main()
109 fname2 = test_cases[i].file2; in main()
110 desc2 = test_cases[i].desc2; in main()
115 if (TEST_ERRNO == test_cases[i].exp_errno) { in main()
124 test_cases[i].exp_errno); in main()
131 test_cases[i].exp_errno); in main()
159 if (!test_cases[n].file1) in setup()
[all …]
/external/autotest/client/site_tests/graphics_dEQP/
Dgraphics_dEQP.py204 test_cases = []
209 return test_cases
255 test_cases = []
261 test_cases.append(case)
263 test_cases = list(set(test_cases) - set(not_passing_cases))
264 if not test_cases:
268 test_cases.sort()
269 return test_cases
274 test_cases = [line.rstrip('\n') for line in open(file_path)]
275 return [test for test in test_cases if test and not test.isspace()]
[all …]
/external/ltp/testcases/kernel/syscalls/lchown/
Dlchown02.c94 static struct test_case_t test_cases[] = { variable
125 for (i = 0; test_cases[i].desc != NULL; i++) { in main()
126 char *file_name = test_cases[i].pathname; in main()
127 char *test_desc = test_cases[i].desc; in main()
138 if (TEST_ERRNO == test_cases[i].exp_errno) { in main()
146 test_cases[i].exp_errno); in main()
151 test_cases[i].exp_errno); in main()
181 for (i = 0; test_cases[i].desc != NULL; i++) in setup()
182 if (test_cases[i].setup != NULL) in setup()
183 test_cases[i].setup(i); in setup()
[all …]
/external/ltp/testcases/kernel/syscalls/clone/
Dclone04.c46 } test_cases[] = { variable
51 int TST_TOTAL = sizeof(test_cases) / sizeof(test_cases[0]);
66 if (test_cases[ind].child_stack == NULL) { in main()
68 } else if (*test_cases[ind].child_stack == NULL) { in main()
76 TEST(ltp_clone(0, test_cases[ind].child_fn, NULL, in main()
80 (TEST_ERRNO == test_cases[ind].exp_errno)) { in main()
82 test_cases[ind].err_desc); in main()
87 test_cases[ind].exp_errno, in main()
/external/ltp/testcases/kernel/syscalls/tkill/
Dtkill02.c60 } test_cases[] = { variable
65 int TST_TOTAL = sizeof(test_cases) / sizeof(test_cases[0]);
77 TEST(ltp_syscall(__NR_tkill, *(test_cases[i].tid), SIGUSR1)); in main()
80 if (TEST_ERRNO == test_cases[i].exp_errno) { in main()
83 *(test_cases[i].tid)); in main()
87 *(test_cases[i].tid)); in main()
92 *(test_cases[i].tid)); in main()
/external/ltp/testcases/kernel/syscalls/lstat/
Dlstat02.c71 } test_cases[] = { variable
81 int TST_TOTAL = ARRAY_SIZE(test_cases);
136 if (test_cases[i].setup) in setup()
137 test_cases[i].setup(i); in setup()
143 test_cases[i].pathname = tst_get_bad_addr(cleanup); in bad_addr_setup()
150 TEST(lstat(test_cases[i].pathname, &stat_buf)); in lstat_verify()
154 TEST_RETURN, test_cases[i].exp_errno); in lstat_verify()
158 if (TEST_ERRNO == test_cases[i].exp_errno) { in lstat_verify()
163 test_cases[i].exp_errno, in lstat_verify()
164 strerror(test_cases[i].exp_errno)); in lstat_verify()
/external/ltp/testcases/kernel/syscalls/sched_getparam/
Dsched_getparam03.c96 } test_cases[] = { variable
102 int TST_TOTAL = sizeof(test_cases) / sizeof(test_cases[0]);
123 TEST(sched_getparam(*(test_cases[ind].pid), in main()
124 test_cases[ind].p)); in main()
127 (TEST_ERRNO == test_cases[ind].exp_errno)) { in main()
129 test_cases[ind].err_desc); in main()
134 test_cases[ind].exp_errno, in main()
/external/ltp/testcases/kernel/syscalls/sched_setparam/
Dsched_setparam04.c99 } test_cases[] = { variable
108 int TST_TOTAL = sizeof(test_cases) / sizeof(test_cases[0]);
127 TEST(sched_setparam(*(test_cases[ind].pid), in main()
128 test_cases[ind].p)); in main()
131 (TEST_ERRNO == test_cases[ind].exp_errno)) { in main()
133 test_cases[ind].err_desc); in main()
138 test_cases[ind].exp_errno, in main()
/external/ltp/testcases/kernel/syscalls/dup3/
Ddup3_02.c54 } test_cases[] = { variable
61 int TST_TOTAL = ARRAY_SIZE(test_cases);
76 TEST(ltp_syscall(__NR_dup3, *(test_cases[i].oldfd), in main()
77 *(test_cases[i].newfd), test_cases[i].flags)); in main()
84 if (TEST_ERRNO == test_cases[i].exp_errno) { in main()
90 "%d - %s", test_cases[i].exp_errno, in main()
91 strerror(test_cases[i].exp_errno)); in main()
/external/ltp/testcases/kernel/syscalls/acct/
Dacct01.c70 } test_cases[] = { variable
83 int TST_TOTAL = ARRAY_SIZE(test_cases);
168 if (test_cases[i].setupfunc) in acct_verify()
169 test_cases[i].setupfunc(); in acct_verify()
171 TEST(acct(test_cases[i].filename)); in acct_verify()
173 if (test_cases[i].cleanfunc) in acct_verify()
174 test_cases[i].cleanfunc(); in acct_verify()
178 test_cases[i].filename); in acct_verify()
182 if (TEST_ERRNO == test_cases[i].exp_errno) { in acct_verify()
187 test_cases[i].exp_errno, in acct_verify()
[all …]
/external/ltp/testcases/kernel/syscalls/iopl/
Diopl02.c98 } test_cases[] = { variable
104 int TST_TOTAL = sizeof(test_cases) / sizeof(test_cases[0]);
132 TEST(iopl(test_cases[i].level)); in main()
135 (TEST_ERRNO == test_cases[i].exp_errno)) { in main()
137 "errno: %d", test_cases[i].desc, in main()
143 test_cases[i].desc, in main()
145 TEST_ERRNO, test_cases[i].exp_errno); in main()
/external/ltp/testcases/kernel/syscalls/confstr/
Dconfstr01.c49 } test_cases[] = { variable
72 int TST_TOTAL = ARRAY_SIZE(test_cases);
94 TEST(confstr(test_cases[i].value, NULL, (size_t)0)); in main()
99 TEST(confstr(test_cases[i].value, buf, len)); in main()
104 test_cases[i].name); in main()
107 test_cases[i].name, buf); in main()
114 test_cases[i].name); in main()
118 test_cases[i].name); in main()
/external/ltp/testcases/kernel/syscalls/sched_get_priority_min/
Dsched_get_priority_min01.c79 } test_cases[] = { variable
86 int TST_TOTAL = sizeof(test_cases) / sizeof(test_cases[0]);
105 TEST(sched_get_priority_min(test_cases[ind].policy)); in main()
107 if (TEST_RETURN == test_cases[ind].retval) { in main()
109 test_cases[ind].desc); in main()
113 test_cases[ind].desc, TEST_RETURN); in main()
/external/ltp/testcases/kernel/syscalls/sched_get_priority_max/
Dsched_get_priority_max01.c79 } test_cases[] = { variable
86 int TST_TOTAL = sizeof(test_cases) / sizeof(test_cases[0]);
105 TEST(sched_get_priority_max(test_cases[ind].policy)); in main()
107 if (TEST_RETURN == test_cases[ind].retval) { in main()
109 test_cases[ind].desc); in main()
113 test_cases[ind].desc, TEST_RETURN); in main()
/external/ltp/testcases/kernel/syscalls/umount2/
Dumount2_02.c57 } test_cases[] = { variable
71 int TST_TOTAL = ARRAY_SIZE(test_cases);
131 if (test_cases[i].do_access) { in test_umount2()
136 TEST(umount2_retry(MNTPOINT, test_cases[i].flag)); in test_umount2()
138 if (test_cases[i].exp_errno != 0) in test_umount2()
147 tst_resm(TFAIL, "%s passed unexpectedly", test_cases[i].desc); in verify_failure()
152 if (TEST_ERRNO != test_cases[i].exp_errno) { in verify_failure()
154 test_cases[i].desc); in verify_failure()
165 test_cases[i].desc); in verify_success()
Dumount2_03.c52 } test_cases[] = { variable
60 int TST_TOTAL = ARRAY_SIZE(test_cases);
115 TEST(umount2_retry(test_cases[i].mntpoint, UMOUNT_NOFOLLOW)); in test_umount2()
117 if (test_cases[i].exp_errno != 0) in test_umount2()
132 tst_resm(TFAIL, "%s passed unexpectedly", test_cases[i].desc); in verify_failure()
137 if (TEST_ERRNO != test_cases[i].exp_errno) { in verify_failure()
139 test_cases[i].desc); in verify_failure()
150 test_cases[i].desc); in verify_success()
/external/python/cpython3/Lib/test/test_json/
Dtest_fail.py107 test_cases = [
124 test_cases += [
128 for data, msg, idx in test_cases:
141 test_cases = [
164 for data, msg, idx in test_cases:
177 test_cases = [
183 test_cases += [
187 for data, msg, idx in test_cases:
200 test_cases = [
206 for data, line, col, idx in test_cases:
/external/ltp/testcases/kernel/syscalls/adjtimex/
Dadjtimex02.c123 } test_cases[] = { variable
137 int TST_TOTAL = sizeof(test_cases) / sizeof(test_cases[0]);
168 if ((test_cases[i].setup) && (test_cases[i].setup())) { in main()
175 TEST(adjtimex(test_cases[i].buffp)); in main()
178 test_cases[i].exp_errno)) { in main()
186 if (test_cases[i].cleanup) { in main()
187 test_cases[i].cleanup(); in main()
/external/ltp/testcases/kernel/syscalls/pivot_root/
Dpivot_root01.c68 } test_cases[] = { variable
119 if (test_cases[test_case].test_case != NEW_ROOT_ON_CURRENT_ROOT) in run()
127 if (test_cases[test_case].test_case == PUT_OLD_NOT_UNDERNEATH_NEW_ROOT) { in run()
135 if (test_cases[test_case].test_case == PUT_OLD_NOT_DIR) in run()
141 if (test_cases[test_case].test_case == NO_CAP_SYS_ADMIN) { in run()
153 if (test_cases[test_case].test_case == NORMAL) { in run()
167 if (errno != test_cases[test_case].expected_error) { in run()
182 .tcnt = ARRAY_SIZE(test_cases),
/external/tensorflow/tensorflow/python/grappler/
Ddatasets_test.py37 test_cases = [{
48 for test_case in test_cases:
62 test_cases = [{
73 for test_case in test_cases:
87 test_cases = [{
98 for test_case in test_cases:
136 test_cases = [{
147 for test_case in test_cases:
240 test_cases = [{
251 for test_case in test_cases:
[all …]
/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl33.c59 } test_cases[] = { variable
116 TEST(fcntl(fd, F_SETLEASE, test_cases[i].lease_type)); in do_test()
135 switch (test_cases[i].lease_type) { in do_test()
139 if (test_cases[i].op_type == OP_OPEN_RDONLY) in do_test()
146 if (test_cases[i].op_type == OP_OPEN_RDONLY) { in do_test()
176 switch (test_cases[i].op_type) { in do_child()
199 test_cases[i].desc, MIN_TIME_LIMIT); in do_child()
203 test_cases[i].desc, elapsed_ms, MIN_TIME_LIMIT); in do_child()
223 .tcnt = ARRAY_SIZE(test_cases),
/external/ltp/testcases/kernel/syscalls/ptrace/
Dptrace03.c108 } test_cases[] = { variable
114 int TST_TOTAL = sizeof(test_cases) / sizeof(test_cases[0]);
164 TEST(ptrace(test_cases[i].request, in main()
165 *(test_cases[i].pid), NULL, NULL)); in main()
167 test_cases in main()
185 test_cases[i].exp_errno)) { in main()

1234567