]> git.baikalelectronics.ru Git - kernel.git/commitdiff
selftests/ftrace: Fix same probe error test
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 27 Sep 2019 15:10:22 +0000 (11:10 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sat, 28 Sep 2019 21:13:40 +0000 (17:13 -0400)
The "same probe" selftest that tests that adding the same probe fails
doesn't add the same probe and passes, which fails the test.

Fixes: 0f30cb58485e ("selftests/ftrace: Update kprobe event error testcase")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/testing/selftests/ftrace/test.d/kprobe/kprobe_syntax_errors.tc

index 8a4025e912cb7fd0523994516d9911ee5c6c570d..ef1e9bafb09844dafca685b10b6b4683da8a918a 100644 (file)
@@ -95,7 +95,7 @@ echo 'p:kprobes/testevent _do_fork abcd=\1' > kprobe_events
 check_error 'p:kprobes/testevent _do_fork ^bcd=\1'     # DIFF_ARG_TYPE
 check_error 'p:kprobes/testevent _do_fork ^abcd=\1:u8' # DIFF_ARG_TYPE
 check_error 'p:kprobes/testevent _do_fork ^abcd=\"foo"'        # DIFF_ARG_TYPE
-check_error '^p:kprobes/testevent _do_fork'    # SAME_PROBE
+check_error '^p:kprobes/testevent _do_fork abcd=\1'    # SAME_PROBE
 fi
 
 exit 0