home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / perl560.zip / t / lib / filecache.t < prev    next >
Text File  |  1999-07-20  |  365b  |  26 lines

  1. #!./perl
  2.  
  3. BEGIN {
  4.     chdir 't' if -d 't';
  5.     unshift @INC, '../lib';
  6. }
  7.  
  8. print "1..1\n";
  9.  
  10. use FileCache;
  11.  
  12. # This is really not a complete test as I don't bother to open enough
  13. # files to make real swapping of open filedescriptor happen.
  14.  
  15. $path = "foo";
  16. cacheout $path;
  17.  
  18. print $path "\n";
  19.  
  20. close $path;
  21.  
  22. print "not " unless -f $path;
  23. print "ok 1\n";
  24.  
  25. unlink $path;
  26.