home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / p / perl4036.zip / t / op / mkdir.t < prev    next >
Text File  |  1993-02-26  |  470b  |  16 lines

  1. #!./perl
  2.  
  3. # $Header: mkdir.t,v 4.0 91/03/20 01:53:39 lwall Locked $
  4.  
  5. print "1..7\n";
  6.  
  7. `rm -r blurfl`;
  8.  
  9. print (mkdir('blurfl',0777) ? "ok 1\n" : "not ok 1\n");
  10. print (mkdir('blurfl',0777) ? "not ok 2\n" : "ok 2\n");
  11. print ($! =~ /denied/ ? "ok 3\n" : "not ok 3\n");
  12. print (-d 'blurfl' ? "ok 4\n" : "not ok 4\n");
  13. print (rmdir('blurfl') ? "ok 5\n" : "not ok 5\n");
  14. print (rmdir('blurfl') ? "not ok 6\n" : "ok 6\n");
  15. print ($! =~ /such|exist/ ? "ok 7\n" : "not ok 7\n");
  16.