From c695838a26a397c4e36fa84b2e640aeac35a9aa5 Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Wed, 27 Aug 2014 18:10:18 -0700 Subject: Make Peek.t easier to run directly e.g., ./perl -TIlib ext/Devel-Peek/t/Peek.t --- ext/Devel-Peek/t/Peek.t | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ext/Devel-Peek') diff --git a/ext/Devel-Peek/t/Peek.t b/ext/Devel-Peek/t/Peek.t index a38d909564..583894d166 100644 --- a/ext/Devel-Peek/t/Peek.t +++ b/ext/Devel-Peek/t/Peek.t @@ -1474,6 +1474,7 @@ for my $test ( } +my $runperl_args = { switches => ['-Ilib'] }; sub test_DumpProg { my ($prog, $expected, $name, $test) = @_; $test ||= 'like'; @@ -1487,10 +1488,10 @@ sub test_DumpProg { utf8::encode($prog); if ( $test eq 'is' ) { - t::fresh_perl_is($prog . $u, $expected, undef, $name) + t::fresh_perl_is($prog . $u, $expected, $runperl_args, $name) } else { - t::fresh_perl_like($prog . $u, $expected, undef, $name) + t::fresh_perl_like($prog . $u, $expected, $runperl_args, $name) } $builder->current_test(t::curr_test() - 1); -- cgit v1.2.1