selftests: bpf: fix backported ASSERT_FALSE
Commit183d9ebd44
("selftests/bpf: Fix core_reloc test runner") causes builds of selftests/bpf to fail on 5.10.y since the branch doesn't have the ASSERT_FALSE macro yet. Replace ASSERT_FALSE with ASSERT_EQ. Fixes:183d9ebd44
("selftests/bpf: Fix core_reloc test runner") Signed-off-by: Lorenz Bauer <lmb@cloudflare.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3a845fa00f
commit
d088db8637
@ -857,7 +857,7 @@ void test_core_reloc(void)
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ASSERT_FALSE(test_case->fails, "obj_load_should_fail"))
|
if (!ASSERT_EQ(test_case->fails, false, "obj_load_should_fail"))
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
equal = memcmp(data->out, test_case->output,
|
equal = memcmp(data->out, test_case->output,
|
||||||
|
Loading…
Reference in New Issue
Block a user