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)
2727 struct bpf_program * prog ;
2828 struct bpf_link * link = NULL ;
2929 pid_t child_pid ;
30- int status ;
30+ int status , err ;
3131
3232 skel = cpumask_success__open ();
3333 if (!ASSERT_OK_PTR (skel , "cpumask_success__open" ))
@@ -36,8 +36,8 @@ static void verify_success(const char *prog_name)
3636 skel -> bss -> pid = getpid ();
3737 skel -> bss -> nr_cpus = libbpf_num_possible_cpus ();
3838
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" ))
4141 goto cleanup ;
4242
4343 prog = bpf_object__find_program_by_name (skel -> obj , prog_name );
You can’t perform that action at this time.
0 commit comments