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/00basic | |
| parent | ftracetest: Cope properly with stack tracer not being enabled (diff) | |
| download | linux-44164c4ba98c3dd3560d929ba66da51b5170ff1c.tar.gz linux-44164c4ba98c3dd3560d929ba66da51b5170ff1c.zip | |
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/00basic')
| -rw-r--r-- | tools/testing/selftests/ftrace/test.d/00basic/basic4.tc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/ftrace/test.d/00basic/basic4.tc b/tools/testing/selftests/ftrace/test.d/00basic/basic4.tc index fd9c49a13612..aa51f6c17359 100644 --- a/tools/testing/selftests/ftrace/test.d/00basic/basic4.tc +++ b/tools/testing/selftests/ftrace/test.d/00basic/basic4.tc @@ -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
\ No newline at end of file +grep -q sched available_events && exit 0 || exit $FAIL |
