commit | 19139f45999a054ccb0f2c0cb89cddca8463f287 | [log] [tgz] |
---|---|---|
author | Rong Tao <rongtao@cestc.cn> | Sat Aug 30 00:32:13 2025 +0800 |
committer | Andrii Nakryiko <andrii@kernel.org> | Fri Aug 29 11:46:37 2025 -0700 |
tree | 8c6c1da4c3bde586a3182f902abefb099c7e6737 | |
parent | 397cfc220945577cb15002f5c0d70547ef771777 [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