This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Get t/uni/cache.t working under minitest
[perl5.git] / t / op / inccode-tie.t
CommitLineData
c38a6530
RD
1#!./perl
2
3# Calls all tests in op/inccode.t after tying @INC first.
4
5use Tie::Array;
6my @orig_INC = @INC;
7tie @INC, 'Tie::StdArray';
8@INC = @orig_INC;
9for my $file ('./op/inccode.t', './t/op/inccode.t', ':op:inccode.t') {
10 if (-r $file) {
cc97bb9e 11 do $file; die $@ if $@;
c38a6530
RD
12 exit;
13 }
14}
15die "Cannot find ./op/inccode.t or ./t/op/inccode.t\n";