Fix for [perl #34252] Access rights in FindBin::Bin
[p5sagit/p5-mst-13.2.git] / lib / FileCache / t / 07noimport.t
CommitLineData
c9463f45 1#!./perl -w
2
3BEGIN {
4 chdir 't';
5 @INC = '../lib';
6}
7
8require './test.pl';
9plan( tests => 1 );
10
11# Try using FileCache without importing to make sure everything's
12# initialized without it.
13{
14 package Y;
15 use FileCache ();
16
17 my $file = 'foo';
18 END { unlink $file }
19 FileCache::cacheout($file);
20 print $file "bar";
21 close $file;
22
23 FileCache::cacheout("<", $file);
24 ::ok( <$file> eq "bar" );
846e3505 25 close $file;
c9463f45 26}