File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tools/testing/selftests/bpf/prog_tests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ static void verify_success(const char *prog_name)
27
27
struct bpf_program * prog ;
28
28
struct bpf_link * link = NULL ;
29
29
pid_t child_pid ;
30
- int status ;
30
+ int status , err ;
31
31
32
32
skel = cpumask_success__open ();
33
33
if (!ASSERT_OK_PTR (skel , "cpumask_success__open" ))
@@ -36,8 +36,8 @@ static void verify_success(const char *prog_name)
36
36
skel -> bss -> pid = getpid ();
37
37
skel -> bss -> nr_cpus = libbpf_num_possible_cpus ();
38
38
39
- cpumask_success__load (skel );
40
- if (!ASSERT_OK_PTR ( skel , "cpumask_success__load" ))
39
+ err = cpumask_success__load (skel );
40
+ if (!ASSERT_OK ( err , "cpumask_success__load" ))
41
41
goto cleanup ;
42
42
43
43
prog = bpf_object__find_program_by_name (skel -> obj , prog_name );
You can’t perform that action at this time.
0 commit comments