kselftest: Support old perl versions
authorSeongJae Park <sjpark@amazon.de>
Mon, 2 Dec 2019 11:42:21 +0000 (12:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Jan 2020 11:21:26 +0000 (12:21 +0100)
commit8ded82da8f9efc466f7f5940fa36b570cb540de9
tree94afbb92b32e60b7e573c3dd43edf9c3cbde7827
parent277df4ca18da0ab0e2e83c476dde2c8f74177c41
kselftest: Support old perl versions

[ Upstream commit 4eac734486fd431e0756cc5e929f140911a36a53 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/kselftest/prefix.pl