perf test: Avoid shell test description infinite loop
for_each_shell_test() is already strict in expecting tests to be files
and executable. It is sometimes possible when it iterates over all files
that it finds one that is executable and lacks a newline character. When
this happens the loop never terminates as it doesn't check for EOF.
Add the EOF check to make this loop at least bounded by the file size.
If the description is returned as NULL then also skip the test.
Signed-off-by: Ian Rogers <email@example.com>
Cc: Adrian Hunter <firstname.lastname@example.org>
Cc: Alexander Shishkin <email@example.com>
Cc: Ingo Molnar <firstname.lastname@example.org>
Cc: Jiri Olsa <email@example.com>
Cc: Marco Elver <firstname.lastname@example.org>
Cc: Mark Rutland <email@example.com>
Cc: Namhyung Kim <firstname.lastname@example.org>
Cc: Peter Zijlstra <email@example.com>
Cc: Riccardo Mancini <firstname.lastname@example.org>
Cc: Sohaib Mohamed <email@example.com>
Cc: Stephane Eranian <firstname.lastname@example.org>
Signed-off-by: Arnaldo Carvalho de Melo <email@example.com>
1 file changed