Commit 6b2d16b6 authored by Dmitrii Dolgov's avatar Dmitrii Dolgov Committed by Alexei Starovoitov

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: default avatarDmitrii Dolgov <9erthalion6@gmail.com>
Link: https://lore.kernel.org/r/20220510155233.9815-3-9erthalion6@gmail.comSigned-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 9f883612
...@@ -629,8 +629,7 @@ static void test_bpf_hash_map(void) ...@@ -629,8 +629,7 @@ static void test_bpf_hash_map(void)
skel->bss->in_test_mode = true; skel->bss->in_test_mode = true;
err = bpf_iter_bpf_hash_map__load(skel); err = bpf_iter_bpf_hash_map__load(skel);
if (CHECK(!skel, "bpf_iter_bpf_hash_map__load", if (!ASSERT_OK(err, "bpf_iter_bpf_hash_map__load"))
"skeleton load failed\n"))
goto out; goto out;
/* iterator with hashmap2 and hashmap3 should fail */ /* iterator with hashmap2 and hashmap3 should fail */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment