mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02: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
|
|
@ -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…
Reference in New Issue
Block a user