diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2018-04-05 18:28:42 +0900 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-04-25 10:28:01 -0400 |
commit | ef39a01203ed2f52319906db555ca66c234ef19b (patch) | |
tree | 6b92fc14134a6605ef7ba5fb731903b525a6252c /fs/overlayfs/export.c | |
parent | bcbd385b61bbdef3491d662203ac2e8186e5be59 (diff) | |
download | linux-stable-ef39a01203ed2f52319906db555ca66c234ef19b.tar.gz linux-stable-ef39a01203ed2f52319906db555ca66c234ef19b.tar.bz2 linux-stable-ef39a01203ed2f52319906db555ca66c234ef19b.zip |
selftests: ftrace: Fix trigger extended error testcase
Previous testcase redirects echo-out into /dev/null
using "&>" as below
echo "trigger-command" >> trigger &> /dev/null
But this means redirecting both stdout and stderr into
/dev/null because it is same as below
echo "trigger-command" >> trigger > /dev/null 2>&1
So ">> trigger" redirects stdout to trigger file, but
next "> /dev/null" redirects stdout to /dev/null again
and the last "2>/&1" redirects stderr to stdout (/dev/null)
This fixes it by "2> /dev/null". And also, since it
must fail, add "!" to echo command.
Link: http://lkml.kernel.org/r/152292052250.15769.12565292689264162435.stgit@devbox
Fixes: f06eec4d0f2c ("selftests: ftrace: Add inter-event hist triggers testcases")
Reviewed-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Tested-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'fs/overlayfs/export.c')
0 files changed, 0 insertions, 0 deletions