]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
kselftest: Support old perl versions
authorSeongJae Park <sjpark@amazon.de>
Mon, 2 Dec 2019 11:42:21 +0000 (12:42 +0100)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 06:00:53 +0000 (01:00 -0500)
commitd5abbc7ccbd1841cd0b4109dced9ce21950d9a60
tree38b436b60906361d2deb6d1c3c42626efef08b7d
parent9d15e96800900be2bc922fa99385a81cd7e5efbd
kselftest: Support old perl versions

BugLink: https://bugs.launchpad.net/bugs/1861929
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
tools/testing/selftests/kselftest/prefix.pl