selftests/bpf: test_progs: remove global fail/success counts
[muen/linux.git] / tools / testing / selftests / bpf / prog_tests / reference_tracking.c
index 4a4f428..5c78e2b 100644 (file)
@@ -10,10 +10,8 @@ void test_reference_tracking(void)
        int err = 0;
 
        obj = bpf_object__open(file);
-       if (IS_ERR(obj)) {
-               error_cnt++;
+       if (CHECK_FAIL(IS_ERR(obj)))
                return;
-       }
 
        bpf_object__for_each_program(prog, obj) {
                const char *title;