diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2017-11-04 04:38:41 +0900 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2017-11-15 08:07:53 -0700 |
commit | 42534b1f58e04a5a6d245d4a8d25f7eb5fd79c7a (patch) | |
tree | 7c3e8cc586de9e1f66c856e069e56c0152bb0dda /tools/testing/selftests/ftrace/ftracetest | |
parent | f737b8f4d3c4b0e088492ee8b5134f5fe9f43b87 (diff) | |
download | talos-obmc-linux-42534b1f58e04a5a6d245d4a8d25f7eb5fd79c7a.tar.gz talos-obmc-linux-42534b1f58e04a5a6d245d4a8d25f7eb5fd79c7a.zip |
selftests/ftrace: Introduce exit_pass and exit_fail
As same as other results, introduce exit_pass and exit_fail
functions so that we can easily understand what will happen.
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing/selftests/ftrace/ftracetest')
-rwxr-xr-x | tools/testing/selftests/ftrace/ftracetest | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/testing/selftests/ftrace/ftracetest b/tools/testing/selftests/ftrace/ftracetest index abc706cf7702..f9a9d424c980 100755 --- a/tools/testing/selftests/ftrace/ftracetest +++ b/tools/testing/selftests/ftrace/ftracetest @@ -222,7 +222,14 @@ SIG_RESULT= SIG_BASE=36 # Use realtime signals SIG_PID=$$ +exit_pass () { + exit 0 +} + SIG_FAIL=$((SIG_BASE + FAIL)) +exit_fail () { + exit 1 +} trap 'SIG_RESULT=$FAIL' $SIG_FAIL SIG_UNRESOLVED=$((SIG_BASE + UNRESOLVED)) |