Searched refs:test_strs (Results 1 – 3 of 3) sorted by relevance
/linux/tools/testing/selftests/net/ |
H A D | tls.c | 651 char *test_strs[5]; in TEST_F() local 661 test_strs[i] = (char *)malloc(strlen(test_str) + 1); in TEST_F() 662 snprintf(test_strs[i], strlen(test_str) + 1, "%s", test_str); in TEST_F() 663 vec[i].iov_base = (void *)test_strs[i]; in TEST_F() 664 vec[i].iov_len = strlen(test_strs[i]) + 1; in TEST_F() 674 EXPECT_EQ(memcmp(test_strs[i], buf + len_cmp, in TEST_F() 675 strlen(test_strs[i])), in TEST_F() 680 free(test_strs[i]); in TEST_F() 688 char *test_strs[1024]; in TEST_F() local 698 test_strs[i] = (char *)malloc(strlen(test_str) + 1); in TEST_F() [all …]
|
/linux/lib/tests/ |
H A D | fortify_kunit.c | 377 static const char * const test_strs[] = { 388 for (i = 0; i < ARRAY_SIZE(test_strs); i++) { \ 389 len = strlen(test_strs[i]); \ 391 checker(len, kmemdup_array(test_strs[i], 1, len, gfp), \ 393 checker(len, kmemdup(test_strs[i], len, gfp), \
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | btf.c | 8089 const char *test_strs, *expect_strs; in do_test_dedup() local 8144 test_strs = test_btf_data + sizeof(*test_hdr) + test_hdr->str_off; in do_test_dedup() 8151 dump_btf_strings(test_strs, test_hdr->str_len); in do_test_dedup()
|