summaryrefslogtreecommitdiffstats
path: root/contrib/perl5/t/lib/filecache.t
blob: 019f3742c5bc5acca75d95970013320f5305aa83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!./perl

BEGIN {
    chdir 't' if -d 't';
    unshift @INC, '../lib';
}

print "1..1\n";

use FileCache;

# This is really not a complete test as I don't bother to open enough
# files to make real swapping of open filedescriptor happen.

$path = "foo";
cacheout $path;

print $path "\n";

close $path;

print "not " unless -f $path;
print "ok 1\n";

unlink $path;
OpenPOWER on IntegriCloud