Skip to content

Commit

Permalink
kselftest: Support old perl versions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
SeongJae Park authored and Shuah Khan committed Dec 11, 2019
1 parent d187801 commit 4eac734
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/testing/selftests/kselftest/prefix.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4eac734

Please sign in to comment.