ftracetest: Convert exit -1 to exit $FAIL
POSIX says that exit takes an unsigned integer between 0 and 255, so using -1 doesn't work on POSIX shells. There is already a well-defined failure code, $FAIL (1), so use that. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Acked-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
This commit is contained in:
parent
a05ffdce71
commit
44164c4ba9
7 changed files with 7 additions and 7 deletions
|
@ -2,4 +2,4 @@
|
|||
# description: Basic event tracing check
|
||||
test -f available_events -a -f set_event -a -d events
|
||||
# check scheduler events are available
|
||||
grep -q sched available_events && exit 0 || exit -1
|
||||
grep -q sched available_events && exit 0 || exit $FAIL
|
||||
|
|
|
@ -9,7 +9,7 @@ do_reset() {
|
|||
fail() { #msg
|
||||
do_reset
|
||||
echo $1
|
||||
exit -1
|
||||
exit $FAIL
|
||||
}
|
||||
|
||||
if [ ! -f set_event -o ! -d events/sched ]; then
|
||||
|
|
|
@ -9,7 +9,7 @@ do_reset() {
|
|||
fail() { #msg
|
||||
do_reset
|
||||
echo $1
|
||||
exit -1
|
||||
exit $FAIL
|
||||
}
|
||||
|
||||
if [ ! -f set_event -o ! -d events/sched ]; then
|
||||
|
|
|
@ -9,7 +9,7 @@ do_reset() {
|
|||
fail() { #msg
|
||||
do_reset
|
||||
echo $1
|
||||
exit -1
|
||||
exit $FAIL
|
||||
}
|
||||
|
||||
if [ ! -f available_events -o ! -f set_event -o ! -d events ]; then
|
||||
|
|
|
@ -27,7 +27,7 @@ do_reset() {
|
|||
fail() { # msg
|
||||
do_reset
|
||||
echo $1
|
||||
exit -1
|
||||
exit $FAIL
|
||||
}
|
||||
|
||||
disable_tracing
|
||||
|
|
|
@ -17,7 +17,7 @@ do_reset() {
|
|||
fail() { # msg
|
||||
do_reset
|
||||
echo $1
|
||||
exit -1
|
||||
exit $FAIL
|
||||
}
|
||||
|
||||
disable_tracing
|
||||
|
|
|
@ -31,7 +31,7 @@ fail() { # mesg
|
|||
reset_tracer
|
||||
echo > set_ftrace_filter
|
||||
echo $1
|
||||
exit -1
|
||||
exit $FAIL
|
||||
}
|
||||
|
||||
echo "Testing function tracer with profiler:"
|
||||
|
|
Loading…
Reference in a new issue