mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-25 23:34:47 +08:00
44164c4ba9
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>
6 lines
199 B
Bash
6 lines
199 B
Bash
#!/bin/sh
|
|
# 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 $FAIL
|