summaryrefslogtreecommitdiff
path: root/lib/FileCache.t
diff options
context:
space:
mode:
Diffstat (limited to 'lib/FileCache.t')
-rwxr-xr-xlib/FileCache.t25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/FileCache.t b/lib/FileCache.t
new file mode 100755
index 0000000000..a97fdd532c
--- /dev/null
+++ b/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;