4 if( $ENV{PERL_CORE} ) {
10 use FileCache maxopen=>2;
14 @files = qw(foo bar baz quux);
17 #For tests within the perl distribution
18 @INC = '../lib' if -d '../lib';
23 1 while unlink @files;
26 {# Test 2: that we actually adhere to maxopen
27 for my $path ( @files ){
29 print $path "$path 1\n";
33 for my $path ( @files ){
34 ok(fileno($path) || $path =~ /^(?:foo|bar)$/);
35 next unless fileno($path);
36 print $path "$path 2\n";
43 ok( grep(/^(?:baz|quux) 2$/, @cat) == 2 );