summaryrefslogtreecommitdiff
path: root/ext/FileCache/t/07noimport.t
blob: 8e1bbcf6a25daef666c7f8808afef909d972d01f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!./perl -w

use Test::More tests => 1;

# Try using FileCache without importing to make sure everything's 
# initialized without it.
{
    package Y;
    use FileCache ();

    my $file = 'foo_noimp';
    END { unlink $file }
    FileCache::cacheout($file);
    print $file "bar";
    close $file;

    FileCache::cacheout("<", $file);
    ::ok( <$file> eq "bar" );
    close $file;
}