Searched refs:copyio_test_string (Results 1 – 1 of 1) sorted by relevance
| /xnu-8792.81.2/bsd/tests/ |
| H A D | copyio_tests.c | 48 static const char copyio_test_string[] = {'T', 'e', 's', 't', ' ', 'S', 't', 'r', 'i', 'n', 'g', '!… variable 223 memcpy(data->kern_addr, copyio_test_string, sizeof(copyio_test_string)); in copyinstr_test() 229 …T_EXPECT_EQ_ULONG(lencopied, strlen(copyio_test_string) + 1, "copyinstr() with a large enough buff… in copyinstr_test() 231 int cmp = strncmp(in_buf, copyio_test_string, lencopied); in copyinstr_test() 233 cmp = memcmp(in_buf, copyio_test_string, sizeof(copyio_test_string)); in copyinstr_test() 237 const vm_size_t trunc_size = strlen(copyio_test_string) - 4; in copyinstr_test() 241 cmp = memcmp(in_buf, copyio_test_string, trunc_size); in copyinstr_test() 243 cmp = memcmp(in_buf, copyio_test_string, strlen(copyio_test_string)); in copyinstr_test() 259 …T_EXPECT_EQ_ULONG(lencopied, strlen(copyio_test_string) + 1, "copyinstr() from kernel address shou… in copyinstr_test() 260 cmp = strncmp(in_buf, copyio_test_string, lencopied); in copyinstr_test() [all …]
|