Skip to content

Commit b07b7e2

Browse files
mhiramatshuahkh
authored andcommitted
selftests/ftrace: Fix checkbashisms errors
Fix the below checkbashisms errors. Because of these errors, these tests will fail on dash shell. possible bashism in test.d/kprobe/kretprobe_entry_arg.tc line 14 ('function' is useless): function streq() { possible bashism in test.d/dynevent/fprobe_entry_arg.tc line 14 ('function' is useless): function streq() { Fixes: f6e2253 ("selftests/ftrace: Add test cases for entry args at function exit") Cc: stable@vger.kernel.org Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
1 parent 2fd3ef1 commit b07b7e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/testing/selftests/ftrace/test.d/dynevent/fprobe_entry_arg.tc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ echo 1 > events/tests/enable
1111
echo > trace
1212
cat trace > /dev/null
1313

14-
function streq() {
14+
streq() {
1515
test $1 = $2
1616
}
1717

tools/testing/selftests/ftrace/test.d/kprobe/kretprobe_entry_arg.tc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ echo 1 > events/kprobes/enable
1111
echo > trace
1212
cat trace > /dev/null
1313

14-
function streq() {
14+
streq() {
1515
test $1 = $2
1616
}
1717

0 commit comments

Comments
 (0)