From: SeongJae Park Date: Mon, 2 Dec 2019 11:42:21 +0000 (+0100) Subject: kselftest: Support old perl versions X-Git-Tag: v5.15~4880^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4eac734486fd431e0756cc5e929f140911a36a53;p=platform%2Fkernel%2Flinux-starfive.git 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 Acked-by: Kees Cook Signed-off-by: Shuah Khan --- diff --git a/tools/testing/selftests/kselftest/prefix.pl b/tools/testing/selftests/kselftest/prefix.pl index ec7e481..31f7c2a 100755 --- a/tools/testing/selftests/kselftest/prefix.pl +++ b/tools/testing/selftests/kselftest/prefix.pl @@ -3,6 +3,7 @@ # Prefix all lines with "# ", unbuffered. Command being piped in may need # to have unbuffering forced with "stdbuf -i0 -o0 -e0 $cmd". use strict; +use IO::Handle; binmode STDIN; binmode STDOUT;