selftests: bpf: fix backported ASSERT_FALSE

Commit 183d9ebd44 ("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:
Lorenz Bauer 2021-10-25 17:06:19 +01:00 committed by Greg Kroah-Hartman
parent 3a845fa00f
commit d088db8637

View File

@ -857,7 +857,7 @@ void test_core_reloc(void)
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;
equal = memcmp(data->out, test_case->output,