Skip to content

Commit 619ee76

Browse files
mhiramatshuahkh
authored andcommitted
selftests/ftrace: Return unsupported if no error_log file
Check whether error_log file exists in tracing/error_log testcase and return UNSUPPORTED if no error_log file. This can happen if we run the ftracetest on the older stable kernel. Fixes: 4eab1cc ("selftests/ftrace: Add tracing/error_log testcase") Cc: [email protected] Signed-off-by: Masami Hiramatsu <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 8e923a2 commit 619ee76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/testing/selftests/ftrace/test.d/ftrace/tracing-error-log.tc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ if [ ! -f set_event ]; then
1414
exit_unsupported
1515
fi
1616

17+
[ -f error_log ] || exit_unsupported
18+
1719
ftrace_errlog_check 'event filter parse error' '((sig >= 10 && sig < 15) || dsig ^== 17) && comm != bash' 'events/signal/signal_generate/filter'
1820

1921
exit 0

0 commit comments

Comments
 (0)