blob: dffa12a7a3699ee1bbf2363fb6a9c5493a35d2c1 [file] [log] [blame]
From a4b2dd46453a4b32511b174e5fff97767108db74 Mon Sep 17 00:00:00 2001
From: SeongJae Park <>
Date: Mon, 2 Dec 2019 12:42:21 +0100
Subject: [PATCH] kselftest: Support old perl versions
commit 4eac734486fd431e0756cc5e929f140911a36a53 upstream.
On an old perl such as v5.10.1, `kselftest/` gives below error
Can't locate object method "autoflush" via package "IO::Handle" at kselftest/ 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 <>
Signed-off-by: Paul Gortmaker <>
diff --git a/tools/testing/selftests/kselftest/ b/tools/testing/selftests/kselftest/
index ec7e48118183..31f7c2a0a8bd 100755
--- a/tools/testing/selftests/kselftest/
+++ b/tools/testing/selftests/kselftest/
@@ -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;