From 07edf5e4760c25baedc1e911221802918744d8f1 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 30 Aug 2016 01:39:07 -0400 Subject: use a consistent implementation of output_like not all of them were passing along @INC --- t/term.t | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 't/term.t') diff --git a/t/term.t b/t/term.t index f8af0b3..c2db4c7 100644 --- a/t/term.t +++ b/t/term.t @@ -2,18 +2,8 @@ use strict; use warnings; use Test::More; -BEGIN { - eval "use IO::Pty::Easy;"; - plan skip_all => "IO::Pty::Easy is required for this test" if $@; -} - -sub output_like { - local $Test::Builder::Level = $Test::Builder::Level + 1; - my ($script, $expected, $desc) = @_; - my $pty = IO::Pty::Easy->new; - $pty->spawn("$^X", "-e", $script); - like($pty->read, $expected, $desc); -} +use lib 't/lib'; +use TestHelpers 'output_like'; output_like(<