mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-04 16:25:34 +00:00
selftests/bpf: Fix result check for test_bpf_hash_map
The original condition looks like a typo, verify the skeleton loading result instead. Signed-off-by: Dmitrii Dolgov <9erthalion6@gmail.com> Link: https://lore.kernel.org/r/20220510155233.9815-3-9erthalion6@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
parent
9f88361273
commit
6b2d16b657
1 changed files with 1 additions and 2 deletions
|
@ -629,8 +629,7 @@ static void test_bpf_hash_map(void)
|
|||
skel->bss->in_test_mode = true;
|
||||
|
||||
err = bpf_iter_bpf_hash_map__load(skel);
|
||||
if (CHECK(!skel, "bpf_iter_bpf_hash_map__load",
|
||||
"skeleton load failed\n"))
|
||||
if (!ASSERT_OK(err, "bpf_iter_bpf_hash_map__load"))
|
||||
goto out;
|
||||
|
||||
/* iterator with hashmap2 and hashmap3 should fail */
|
||||
|
|
Loading…
Add table
Reference in a new issue