selftests/bpf: test_progs: remove global fail/success counts
[muen/linux.git] / tools / testing / selftests / bpf / prog_tests / bpf_obj_id.c
index fb5840a..5dd6ca1 100644 (file)
@@ -48,8 +48,7 @@ void test_bpf_obj_id(void)
                /* test_obj_id.o is a dumb prog. It should never fail
                 * to load.
                 */
-               if (err)
-                       error_cnt++;
+               CHECK_FAIL(err);
                assert(!err);
 
                /* Insert a magic value to the map */