summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/ftrace/ftracetest
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2017-11-04 04:38:41 +0900
committerShuah Khan <shuahkh@osg.samsung.com>2017-11-15 08:07:53 -0700
commit42534b1f58e04a5a6d245d4a8d25f7eb5fd79c7a (patch)
tree7c3e8cc586de9e1f66c856e069e56c0152bb0dda /tools/testing/selftests/ftrace/ftracetest
parentf737b8f4d3c4b0e088492ee8b5134f5fe9f43b87 (diff)
downloadtalos-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-xtools/testing/selftests/ftrace/ftracetest7
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))
OpenPOWER on IntegriCloud