p4raw-id: //depot/perl@35076
use Test::More tests => 1;
use Test::Harness;
+# 28567
+my ( @before, @after );
{
-
- #28567
+ local @INC;
unshift @INC, 'wibble';
- my @before = Test::Harness::_filtered_inc();
+ @before = Test::Harness::_filtered_inc();
unshift @INC, sub {die};
- my @after = Test::Harness::_filtered_inc();
- is_deeply \@after, \@before, 'subref removed from @INC';
+ @after = Test::Harness::_filtered_inc();
}
+
+is_deeply \@after, \@before, 'subref removed from @INC';