Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kselftest: Support old perl versions

On an old perl such as v5.10.1, `kselftest/prefix.pl` gives below error
message:

Can't locate object method "autoflush" via package "IO::Handle" at kselftest/prefix.pl line 10.

This commit fixes the error by explicitly specifying the use of the
`IO::Handle` package.

Signed-off-by: SeongJae Park <sjpark@amazon.de>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

SeongJae Park and committed by
Shuah Khan
4eac7344 d187801d

+1
+1
tools/testing/selftests/kselftest/prefix.pl
··· 3 3 # Prefix all lines with "# ", unbuffered. Command being piped in may need 4 4 # to have unbuffering forced with "stdbuf -i0 -o0 -e0 $cmd". 5 5 use strict; 6 + use IO::Handle; 6 7 7 8 binmode STDIN; 8 9 binmode STDOUT;