summaryrefslogtreecommitdiff
path: root/scripts/rustdoc_test_builder.rs
diff options
context:
space:
mode:
authorRong Tao <rongtao@cestc.cn>2025-08-30 00:32:13 +0800
committerAlexei Starovoitov <ast@kernel.org>2025-09-09 15:07:58 -0700
commit6624fb2f3382271953f951d46f2ea30415a0917e (patch)
treeb28fb0d124e318582dbf9586f3de16535c41bb45 /scripts/rustdoc_test_builder.rs
parent7edfc024708258d75f65fadffd7e5f6ac46810b6 (diff)
selftests/bpf: Add tests for bpf_strnstr
Add tests for bpf_strnstr(): bpf_strnstr("", "", 0) = 0 bpf_strnstr("hello world", "hello", 5) = 0 bpf_strnstr(str, "hello", 4) = -ENOENT bpf_strnstr("", "a", 0) = -ENOENT Signed-off-by: Rong Tao <rongtao@cestc.cn> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/tencent_2ED218F8082565C95D86A804BDDA8DBA200A@qq.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions