diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2015-03-30 16:21:00 +1100 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2015-03-31 10:15:46 -0600 |
commit | 44164c4ba98c3dd3560d929ba66da51b5170ff1c (patch) | |
tree | efc0a82b3dc7bdfdf1e0e49295b3614790c6c1c8 /tools/testing/selftests/ftrace/test.d/event | |
parent | a05ffdce7155769ea5ac3409e1490fb9116dbaed (diff) | |
download | linux-44164c4ba98c3dd3560d929ba66da51b5170ff1c.tar.bz2 |
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>
Diffstat (limited to 'tools/testing/selftests/ftrace/test.d/event')
3 files changed, 3 insertions, 3 deletions
diff --git a/tools/testing/selftests/ftrace/test.d/event/event-enable.tc b/tools/testing/selftests/ftrace/test.d/event/event-enable.tc index 668616d9bb03..dbddb7836f73 100644 --- a/tools/testing/selftests/ftrace/test.d/event/event-enable.tc +++ b/tools/testing/selftests/ftrace/test.d/event/event-enable.tc @@ -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 diff --git a/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc b/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc index 655c415b6e7f..ef9b95dc10c5 100644 --- a/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc +++ b/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc @@ -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 diff --git a/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc b/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc index 480845774007..af8cf01fc3a7 100644 --- a/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc +++ b/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc @@ -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 |