1N/A#!./perl
1N/Ause FileCache;
1N/Ause vars qw(@files);
1N/ABEGIN {
1N/A @files = qw(foo bar baz quux Foo_Bar);
1N/A chdir 't' if -d 't';
1N/A
1N/A #For tests within the perl distribution
1N/A @INC = '../lib' if -d '../lib';
1N/A END;
1N/A}
1N/AEND{
1N/A 1 while unlink @files;
1N/A}
1N/A
1N/A
1N/Aprint "1..1\n";
1N/A
1N/A{# Test 1: that we can open files
1N/A for my $path ( @files ){
1N/A cacheout $path;
1N/A print $path "$path 1\n";
1N/A }
1N/A print "not " unless scalar map({ -f } @files) == scalar @files;
1N/A print "ok 1\n";
1N/A}