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 <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 41c2410 commit 7764b96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)