Home
last modified time | relevance | path

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

12345

/external/ltp/testcases/kernel/syscalls/ioperm/
Dioperm02.c107 struct test_cases_t *test_cases; variable
133 TEST(ioperm(test_cases[i].from, in main()
134 test_cases[i].num, test_cases[i].turn_on)); in main()
137 (TEST_ERRNO == test_cases[i].exp_errno)) { in main()
139 "errno: %d", test_cases[i].desc, in main()
145 test_cases[i].desc, in main()
147 TEST_ERRNO, test_cases[i].exp_errno); in main()
205 test_cases = malloc(sizeof(struct test_cases_t) * 2); in setup()
206 test_cases[0].num = NUM_BYTES; in setup()
207 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/vulkan-validation-layers/tests/gtest-1.7.0/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/googletest/googletest/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/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/v8/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/protobuf/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()
129 const TestCase** const test_cases = UnitTestHelper::GetSortedTestCases(); in TEST() local
131 EXPECT_STREQ("ApiTest", test_cases[0]->name()); in TEST()
132 EXPECT_STREQ("DISABLED_Test", test_cases[1]->name()); in TEST()
134 EXPECT_STREQ("TestCaseWithCommentTest/0", test_cases[2]->name()); in TEST()
137 delete[] test_cases; in TEST()
[all …]
/external/ltp/testcases/kernel/syscalls/clone/
Dclone08.c65 } test_cases[] = { variable
80 int TST_TOTAL = ARRAY_SIZE(test_cases);
92 tst_resm(TINFO, "running %s", test_cases[i].name); in main()
93 test_cases[i].testfunc(i); in main()
161 clone_child(&test_cases[t], 0); in test_clone_parent()
171 tst_resm(TPASS, "test %s", test_cases[t].name); in test_clone_parent()
174 test_cases[t].name, status); in test_clone_parent()
178 test_cases[t].name, status); in test_clone_parent()
197 child = clone_child(&test_cases[t], 1); in test_clone_tid()
200 tst_resm(TPASS, "test %s", test_cases[t].name); in test_clone_tid()
[all …]
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/link/
Dlink04.c67 } test_cases[] = { variable
97 int TST_TOTAL = ARRAY_SIZE(test_cases);
119 fname1 = test_cases[i].file1; in main()
120 desc1 = test_cases[i].desc1; in main()
121 fname2 = test_cases[i].file2; in main()
122 desc2 = test_cases[i].desc2; in main()
135 if (TEST_ERRNO == test_cases[i].exp_errno) { in main()
144 test_cases[i].exp_errno); in main()
151 test_cases[i].exp_errno); in main()
172 test_cases[6].file1 = bad_addr; in setup()
[all …]
/external/ltp/testcases/kernel/syscalls/lstat/
Dlstat02.c71 } test_cases[] = { variable
84 int TST_TOTAL = ARRAY_SIZE(test_cases);
147 test_cases[i].pathname = SAFE_MMAP(cleanup, 0, 1, PROT_NONE, in bad_addr_setup()
153 test_cases[i].pathname = (char *)get_high_address(); in high_address_setup()
161 if (test_cases[i].setup != NULL) in lstat_verify()
162 test_cases[i].setup(i); in lstat_verify()
164 TEST(lstat(test_cases[i].pathname, &stat_buf)); in lstat_verify()
168 TEST_RETURN, test_cases[i].exp_errno); in lstat_verify()
172 if (TEST_ERRNO == test_cases[i].exp_errno) { in lstat_verify()
177 test_cases[i].exp_errno, in lstat_verify()
[all …]
/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/lchown/
Dlchown02.c92 static struct test_case_t test_cases[] = { variable
127 for (i = 0; test_cases[i].desc != NULL; i++) { in main()
128 char *file_name = test_cases[i].pathname; in main()
129 char *test_desc = test_cases[i].desc; in main()
140 if (TEST_ERRNO == test_cases[i].exp_errno) { in main()
148 test_cases[i].exp_errno); in main()
153 test_cases[i].exp_errno); in main()
183 for (i = 0; test_cases[i].desc != NULL; i++) in setup()
184 if (test_cases[i].setup != NULL) in setup()
185 test_cases[i].setup(i); in setup()
[all …]
/external/autotest/client/site_tests/graphics_dEQP/
Dgraphics_dEQP.py191 test_cases = []
196 return test_cases
241 test_cases = []
247 test_cases.append(case)
249 test_cases = list(set(test_cases) - set(not_passing_cases))
250 if not test_cases:
253 test_cases.sort()
254 return test_cases
259 test_cases = [line.rstrip('\n') for line in open(file_path)]
260 return [test for test in test_cases if test and not test.isspace()]
[all …]
/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/iopl/
Diopl02.c97 } test_cases[] = { variable
103 int TST_TOTAL = sizeof(test_cases) / sizeof(test_cases[0]);
131 TEST(iopl(test_cases[i].level)); in main()
134 (TEST_ERRNO == test_cases[i].exp_errno)) { in main()
136 "errno: %d", test_cases[i].desc, in main()
142 test_cases[i].desc, in main()
144 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/acct/
Dacct01.c70 } test_cases[] = { variable
83 int TST_TOTAL = ARRAY_SIZE(test_cases);
174 if (test_cases[i].setupfunc) in acct_verify()
175 test_cases[i].setupfunc(); in acct_verify()
177 TEST(acct(test_cases[i].filename)); in acct_verify()
179 if (test_cases[i].cleanfunc) in acct_verify()
180 test_cases[i].cleanfunc(); in acct_verify()
184 test_cases[i].filename); in acct_verify()
188 if (TEST_ERRNO == test_cases[i].exp_errno) { in acct_verify()
193 test_cases[i].exp_errno, in acct_verify()
[all …]
/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()
/external/ltp/testcases/kernel/syscalls/prctl/
Dprctl02.c97 } test_cases[] = { variable
103 int TST_TOTAL = sizeof(test_cases) / sizeof(test_cases[0]);
132 TEST(prctl(test_cases[i].option, in main()
133 test_cases[i].arg2)); in main()
135 test_cases in main()
154 test_cases in main()
/external/ltp/testcases/kernel/syscalls/adjtimex/
Dadjtimex02.c122 } test_cases[] = { variable
136 int TST_TOTAL = sizeof(test_cases) / sizeof(test_cases[0]);
167 if ((test_cases[i].setup) && (test_cases[i].setup())) { in main()
174 TEST(adjtimex(test_cases[i].buffp)); in main()
177 test_cases[i].exp_errno)) { in main()
185 if (test_cases[i].cleanup) { in main()
186 test_cases[i].cleanup(); in main()

12345