Re: [PATCH v2] ftracetest: Convert exit -1 to exit $FAIL
From: Steven Rostedt
Date: Mon Mar 30 2015 - 15:50:58 EST
On Mon, 30 Mar 2015 16:21:00 +1100
Michael Ellerman <mpe@xxxxxxxxxxxxxx> wrote:
> 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@xxxxxxxxxxxxxx>
Acked-by: Steven Rostedt <rostedt@xxxxxxxxxxx>
-- Steve
> ---
>
> v2: Use exit $FAIL not exit 255.
>
> tools/testing/selftests/ftrace/test.d/00basic/basic4.tc | 2 +-
> tools/testing/selftests/ftrace/test.d/event/event-enable.tc | 2 +-
> tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc | 2 +-
> tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc | 2 +-
> tools/testing/selftests/ftrace/test.d/ftrace/fgraph-filter-stack.tc | 2 +-
> tools/testing/selftests/ftrace/test.d/ftrace/fgraph-filter.tc | 2 +-
> tools/testing/selftests/ftrace/test.d/ftrace/func_profiler.tc | 2 +-
> 7 files changed, 7 insertions(+), 7 deletions(-)
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/