Re: [PATCH v2] selftests/ftrace: Introduce exit_pass and exit_fail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat,  4 Nov 2017 04:38:41 +0900
Masami Hiramatsu <mhiramat@xxxxxxxxxx> wrote:

> --- a/tools/testing/selftests/ftrace/ftracetest
> +++ b/tools/testing/selftests/ftrace/ftracetest
> @@ -222,7 +222,14 @@ SIG_RESULT=
>  SIG_BASE=36	# Use realtime signals
>  SIG_PID=$$
>  
> +exit_pass () {
> +  exit 0
> +}
> +
>  SIG_FAIL=$((SIG_BASE + FAIL))
> +exit_fail () {
> +  exit 1

Sorry, I should have caught this before. But can you use $PASS and
$FAIL in the functions? In case we want to override them in the future?

exit_pass() {
	exit $PASS
}

exit_fail() {
	exit $FAIL
}

-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux