Searched refs:copyio_test_string (Results 1 – 1 of 1) sorted by relevance
| /xnu-11417.140.69/bsd/tests/ |
| H A D | copyio_tests.c | 49 static const char copyio_test_string[] = {'T', 'e', 's', 't', ' ', 'S', 't', 'r', 'i', 'n', 'g', '!… variable 224 memcpy(data->kern_addr, copyio_test_string, sizeof(copyio_test_string)); in copyinstr_test() 230 …T_EXPECT_EQ_ULONG(lencopied, strlen(copyio_test_string) + 1, "copyinstr() with a large enough buff… in copyinstr_test() 232 int cmp = strncmp(in_buf, copyio_test_string, lencopied); in copyinstr_test() 234 cmp = memcmp(in_buf, copyio_test_string, sizeof(copyio_test_string)); in copyinstr_test() 238 const vm_size_t trunc_size = strlen(copyio_test_string) - 4; in copyinstr_test() 242 cmp = memcmp(in_buf, copyio_test_string, trunc_size); in copyinstr_test() 244 cmp = memcmp(in_buf, copyio_test_string, strlen(copyio_test_string)); in copyinstr_test() 260 …T_EXPECT_EQ_ULONG(lencopied, strlen(copyio_test_string) + 1, "copyinstr() from kernel address shou… in copyinstr_test() 261 cmp = strncmp(in_buf, copyio_test_string, lencopied); in copyinstr_test() [all …]
|