Home
last modified time | relevance | path

Searched refs:copyio_test_string (Results 1 – 1 of 1) sorted by relevance

/xnu-12377.61.12/bsd/tests/
H A Dcopyio_tests.c52 static const char copyio_test_string[] = {'T', 'e', 's', 't', ' ', 'S', 't', 'r', 'i', 'n', 'g', '!… variable
227 memcpy(data->kern_addr, copyio_test_string, sizeof(copyio_test_string)); in copyinstr_test()
233 …T_EXPECT_EQ_ULONG(lencopied, strlen(copyio_test_string) + 1, "copyinstr() with a large enough buff… in copyinstr_test()
235 int cmp = strncmp(in_buf, copyio_test_string, lencopied); in copyinstr_test()
237 cmp = memcmp(in_buf, copyio_test_string, sizeof(copyio_test_string)); in copyinstr_test()
241 const vm_size_t trunc_size = strlen(copyio_test_string) - 4; in copyinstr_test()
245 cmp = memcmp(in_buf, copyio_test_string, trunc_size); in copyinstr_test()
247 cmp = memcmp(in_buf, copyio_test_string, strlen(copyio_test_string)); in copyinstr_test()
263 …T_EXPECT_EQ_ULONG(lencopied, strlen(copyio_test_string) + 1, "copyinstr() from kernel address shou… in copyinstr_test()
264 cmp = strncmp(in_buf, copyio_test_string, lencopied); in copyinstr_test()
[all …]