Commit 8684f2f
committed
selftests/ftrace: Fix check of return value in fgraph-retval.tc test
The addition of recording both the function name and return address to the
function graph tracer updated the selftest to check for "=-5" from "= -5".
But this causes the test to fail on certain configs, as "= -5" is still a
value that can be returned if function addresses are not enabled (older kernels).
Check for both "=-5" and " -5" as a success value.
Cc: Masami Hiramatsu <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: Donglin Peng <[email protected]>
Link: https://lore.kernel.org/[email protected]
Fixes: 21e9280 ("function_graph: Support recording and printing the function return address")
Signed-off-by: Steven Rostedt (Google) <[email protected]>1 parent 0b58261 commit 8684f2f
File tree
1 file changed
+1
-1
lines changed- tools/testing/selftests/ftrace/test.d/ftrace
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments