Home
last modified time | relevance | path

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

/tools/testing/selftests/net/
Dtls.c630 char *test_strs[5]; in TEST_F() local
640 test_strs[i] = (char *)malloc(strlen(test_str) + 1); in TEST_F()
641 snprintf(test_strs[i], strlen(test_str) + 1, "%s", test_str); in TEST_F()
642 vec[i].iov_base = (void *)test_strs[i]; in TEST_F()
643 vec[i].iov_len = strlen(test_strs[i]) + 1; in TEST_F()
653 EXPECT_EQ(memcmp(test_strs[i], buf + len_cmp, in TEST_F()
654 strlen(test_strs[i])), in TEST_F()
659 free(test_strs[i]); in TEST_F()
667 char *test_strs[1024]; in TEST_F() local
677 test_strs[i] = (char *)malloc(strlen(test_str) + 1); in TEST_F()
[all …]
/tools/testing/selftests/bpf/prog_tests/
Dbtf.c8011 const char *test_strs, *expect_strs; in do_test_dedup() local
8066 test_strs = test_btf_data + sizeof(*test_hdr) + test_hdr->str_off; in do_test_dedup()
8073 dump_btf_strings(test_strs, test_hdr->str_len); in do_test_dedup()