Skip to content

Commit 7764b96

Browse files
olsajirianakryiko
authored andcommitted
bpf/selftests: Fix ASSERT_OK condition check in uprobe_syscall test
Fixing ASSERT_OK condition check in uprobe_syscall test, otherwise we return from test on pipe success. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Yonghong Song <yonghong.song@linux.dev> Link: https://lore.kernel.org/bpf/20240726180847.684584-1-jolsa@kernel.org
1 parent 41c2410 commit 7764b96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ static void test_uretprobe_syscall_call(void)
253253
struct uprobe_syscall_executed *skel;
254254
int pid, status, err, go[2], c;
255255

256-
if (ASSERT_OK(pipe(go), "pipe"))
256+
if (!ASSERT_OK(pipe(go), "pipe"))
257257
return;
258258

259259
skel = uprobe_syscall_executed__open_and_load();

0 commit comments

Comments
 (0)