Skip to content

Commit 4eac734

Browse files
sj-awsshuahkh
authored andcommitted
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 <[email protected]> Acked-by: Kees Cook <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent d187801 commit 4eac734

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/testing/selftests/kselftest/prefix.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Prefix all lines with "# ", unbuffered. Command being piped in may need
44
# to have unbuffering forced with "stdbuf -i0 -o0 -e0 $cmd".
55
use strict;
6+
use IO::Handle;
67

78
binmode STDIN;
89
binmode STDOUT;

0 commit comments

Comments
 (0)