summaryrefslogtreecommitdiff
path: root/t/op/inccode-tie.t
blob: 5bbcc101a386e774ea38d0bd51613046ff0fa586 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!./perl

# Calls all tests in op/inccode.t after tying @INC first.

use Tie::Array;
my @orig_INC = @INC;
tie @INC, 'Tie::StdArray';
@INC = @orig_INC;
for my $file ('./op/inccode.t', './t/op/inccode.t', ':op:inccode.t') {
    if (-r $file) {
	do $file; die $@ if $@;
	exit;
    }
}
die "Cannot find ./op/inccode.t or ./t/op/inccode.t\n";