summaryrefslogtreecommitdiffstats
path: root/contrib/perl5/t/lib/filecache.t
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/perl5/t/lib/filecache.t')
-rwxr-xr-xcontrib/perl5/t/lib/filecache.t25
1 files changed, 25 insertions, 0 deletions
diff --git a/contrib/perl5/t/lib/filecache.t b/contrib/perl5/t/lib/filecache.t
new file mode 100755
index 0000000..a97fdd5
--- /dev/null
+++ b/contrib/perl5/t/lib/filecache.t
@@ -0,0 +1,25 @@
+#!./perl
+
+BEGIN {
+ chdir 't' if -d 't';
+ @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