diff options
Diffstat (limited to 'tests/misc/tty-eof')
-rwxr-xr-x | tests/misc/tty-eof | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/misc/tty-eof b/tests/misc/tty-eof index bb0cc053e..c5d57ab01 100755 --- a/tests/misc/tty-eof +++ b/tests/misc/tty-eof @@ -24,8 +24,9 @@ use strict; # Some older versions of Expect.pm (e.g. 1.07) lack the log_user method, # so check for that, too. -eval { require Expect; my $exp = new Expect; $exp->log_user(0) }; -$@ and (warn "$ME: this script requires Perl's Expect package\n"), exit 77; +eval { require Expect; Expect->require_version('1.11') }; +$@ and (warn "$ME: this script requires Perl's Expect package >=1.11\n"), + exit 77; { my $fail = 0; |