/third_party/ltp/testcases/kernel/syscalls/getpeername/ |
D | getpeername01.c | 61 } 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 …]
|
/third_party/ltp/testcases/kernel/syscalls/lchown/ |
D | lchown02.c | 94 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 …]
|
D | lchown01.c | 59 static struct test_case_t test_cases[] = { variable 86 for (i = 0; test_cases[i].desc != NULL; i++) { in main() 87 uid_t user_id = test_cases[i].user_id; in main() 88 gid_t group_id = test_cases[i].group_id; in main() 89 char *test_desc = test_cases[i].desc; in main() 114 test_cases[i - 1].user_id; in main() 122 test_cases[i - 1].group_id; in main()
|
/third_party/libphonenumber/cpp/test/phonenumbers/ |
D | phonenumbermatcher_test.cc | 105 const std::vector<NumberTest>& test_cases, in DoTestNumberMatchesForLeniency() argument 108 for (std::vector<NumberTest>::const_iterator test = test_cases.begin(); in DoTestNumberMatchesForLeniency() 109 test != test_cases.end(); ++test) { in DoTestNumberMatchesForLeniency() 128 const std::vector<NumberTest>& test_cases, in DoTestNumberNonMatchesForLeniency() argument 131 for (std::vector<NumberTest>::const_iterator test = test_cases.begin(); in DoTestNumberNonMatchesForLeniency() 132 test != test_cases.end(); ++test) { in DoTestNumberNonMatchesForLeniency() 932 std::vector<NumberTest> test_cases; in TEST_F() local 933 test_cases.insert(test_cases.begin(), kPossibleOnlyCases, in TEST_F() 935 test_cases.insert(test_cases.begin(), kValidCases, in TEST_F() 937 test_cases.insert( in TEST_F() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/confstr/ |
D | confstr01.c | 49 } 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()
|
/third_party/ltp/testcases/kernel/syscalls/umount2/ |
D | umount2_02.c | 57 } 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()
|
D | umount2_03.c | 52 } 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()
|
/third_party/python/Lib/test/test_json/ |
D | test_fail.py | 107 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:
|
/third_party/ltp/testcases/kernel/syscalls/pivot_root/ |
D | pivot_root01.c | 69 } test_cases[] = { variable 120 if (test_cases[test_case].test_case != NEW_ROOT_ON_CURRENT_ROOT) in run() 128 if (test_cases[test_case].test_case == PUT_OLD_NOT_UNDERNEATH_NEW_ROOT) { in run() 136 if (test_cases[test_case].test_case == PUT_OLD_NOT_DIR) in run() 142 if (test_cases[test_case].test_case == NO_CAP_SYS_ADMIN) { in run() 154 if (test_cases[test_case].test_case == NORMAL) { in run() 168 if (errno != test_cases[test_case].expected_error) { in run() 183 .tcnt = ARRAY_SIZE(test_cases),
|
/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl33.c | 59 } test_cases[] = { variable 105 TEST(fcntl(fd, F_SETLEASE, test_cases[i].lease_type)); in do_test() 131 switch (test_cases[i].lease_type) { in do_test() 135 if (test_cases[i].op_type == OP_OPEN_RDONLY) in do_test() 142 if (test_cases[i].op_type == OP_OPEN_RDONLY) { in do_test() 172 switch (test_cases[i].op_type) { in do_child() 195 test_cases[i].desc, MIN_TIME_LIMIT); in do_child() 199 test_cases[i].desc, elapsed_ms, MIN_TIME_LIMIT); in do_child() 219 .tcnt = ARRAY_SIZE(test_cases),
|
D | fcntl32.c | 42 } test_cases[] = { variable 55 int TST_TOTAL = ARRAY_SIZE(test_cases); 101 fd1 = SAFE_OPEN(cleanup, "file", test_cases[i].fd1_flag); in verify_fcntl() 102 fd2 = SAFE_OPEN(cleanup, "file", test_cases[i].fd2_flag); in verify_fcntl()
|
/third_party/ltp/testcases/kernel/syscalls/fpathconf/ |
D | fpathconf01.c | 54 } test_cases[] = { variable 67 int TST_TOTAL = ARRAY_SIZE(test_cases); 87 TEST(fpathconf(fd, test_cases[i].value)); in main() 93 "%s", test_cases[i].name); in main() 97 test_cases[i].name); in main() 102 test_cases[i].name, TEST_RETURN); in main()
|
/third_party/typescript/tests/ts_extra_tests/ |
D | run_ts_case.py | 61 test_cases = TestCase(path) 62 if not test_cases.is_test_case: 65 if not test_cases.check_declaration(): 66 print(test_cases.path, test_cases.detail_result, sep='\t') 68 if skip_negative and test_cases.is_negative(): 71 test_cases.execute(ark_runtime) 72 if test_cases.fail: 74 print(test_cases.path, test_cases.detail_result, sep='\t')
|
/third_party/vixl/tools/test_generator/ |
D | generator.py | 313 inputs, test_cases): argument 319 self.test_cases = test_cases 394 return "\n".join(map(InputDefinition, self.test_cases)) 432 test_cases = [ 444 return ",\n".join(test_cases) 447 test_cases = [ 461 return ",\n".join(test_cases) 464 test_cases = [ 473 return ",\n".join(test_cases) 476 return ",\n".join(map(SimulatorTestCaseDefinition, self.test_cases)) [all …]
|
/third_party/fsverity-utils/programs/ |
D | test_compute_digest.c | 54 } test_cases[] = { variable 395 for (i = 0; i < ARRAY_SIZE(test_cases); i++) in main() 396 f.size = max(f.size, test_cases[i].file_size); in main() 402 for (i = 0; i < ARRAY_SIZE(test_cases); i++) { in main() 403 u32 expected_alg = test_cases[i].hash_algorithm ?: in main() 408 params.hash_algorithm = test_cases[i].hash_algorithm; in main() 409 params.file_size = test_cases[i].file_size; in main() 410 params.block_size = test_cases[i].block_size; in main() 411 if (test_cases[i].salt) { in main() 412 params.salt = (const u8 *)test_cases[i].salt; in main() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/clone/ |
D | clone08.c | 54 } test_cases[] = { variable 72 tst_res(TINFO, "running %s", test_cases[i].name); in do_test() 73 test_cases[i].testfunc(i); in do_test() 107 clone_child(&test_cases[t]); in test_clone_parent() 127 clone_child(&test_cases[t]); in test_clone_tid() 161 child = clone_child(&test_cases[t]); in test_clone_stopped() 196 clone_child(&test_cases[t]); in test_clone_thread() 231 .tcnt = ARRAY_SIZE(test_cases),
|
/third_party/ltp/testcases/kernel/syscalls/rt_sigprocmask/ |
D | rt_sigprocmask02.c | 82 } test_cases[] = { variable 88 int test_count = sizeof(test_cases) / sizeof(struct test_case_t); 108 &s, test_cases[i].ss, test_cases[i].sssize)); in main() 113 } else if (TEST_ERRNO == test_cases[i].exp_errno) { in main()
|
/third_party/ltp/testcases/kernel/syscalls/truncate/ |
D | truncate03.c | 65 } test_cases[] = { variable 108 for (n = 0; n < ARRAY_SIZE(test_cases); n++) { in setup() 109 if (!test_cases[n].pathname) in setup() 110 test_cases[n].pathname = tst_get_bad_addr(NULL); in setup() 117 struct test_case_t *tc = &test_cases[n]; in verify_truncate() 144 .tcnt = ARRAY_SIZE(test_cases),
|
/third_party/ffmpeg/libavcodec/tests/ |
D | htmlsubtitles.c | 22 static const char * const test_cases[] = { variable 42 for (i = 0; i < FF_ARRAY_ELEMS(test_cases); i++) { in main() 43 int ret = ff_htmlmarkup_to_ass(NULL, &dst, test_cases[i]); in main() 46 printf("%s --> %s\n", test_cases[i], dst.str); in main()
|
/third_party/googletest/googletest/test/ |
D | googletest-shuffle-test.py | 119 test_cases = [] 122 if not test_case in test_cases: 123 test_cases.append(test_case) 125 return test_cases 244 test_cases = [] 247 if test_cases and test_cases[-1] != test_case: 248 test_cases.append(test_case) 249 self.assertEqual(1, test_cases.count(test_case),
|
/third_party/ltp/testcases/kernel/syscalls/rt_sigaction/ |
D | rt_sigaction02.c | 67 } test_cases[] = { variable 101 test_cases[0].exp_errno)) { in main() 108 test_cases[0].errdesc, in main() 115 test_cases[0]. in main()
|
D | rt_sigaction03.c | 67 } test_cases[] = { variable 119 test_cases[0].exp_errno)) { in main() 126 test_cases[0].errdesc, in main() 133 test_cases[0]. in main()
|
/third_party/ltp/testcases/kernel/syscalls/statvfs/ |
D | statvfs02.c | 50 } test_cases[] = { variable 58 int TST_TOTAL = ARRAY_SIZE(test_cases); 72 statvfs_verify(&test_cases[i]); in main() 94 test_cases[0].path = SAFE_MMAP(cleanup, NULL, 1, PROT_NONE, in setup()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
D | numbers_test_common.h | 70 static const std::array<uint32_test_case, 27> test_cases{{ in strtouint32_test_cases() 107 return test_cases; in strtouint32_test_cases() 118 static const std::array<uint64_test_case, 34> test_cases{{ in strtouint64_test_cases() 177 return test_cases; in strtouint64_test_cases()
|
/third_party/ltp/testcases/kernel/syscalls/cacheflush/ |
D | cacheflush01.c | 31 } test_cases[] = { variable 46 struct test_case_t *tc = &test_cases[i]; in test_cacheflush() 55 .tcnt = ARRAY_SIZE(test_cases),
|