perl 3.0 patch #20 patch #19, continued
[p5sagit/p5-mst-13.2.git] / t / op.mkdir
CommitLineData
a687059c 1#!./perl
2
79a0689e 3# $Header: op.mkdir,v 3.0.1.3 90/03/12 17:03:57 lwall Locked $
a687059c 4
5print "1..7\n";
6
7`rm -rf blurfl`;
8
79a0689e 9print (mkdir('blurfl',0777) ? "ok 1\n" : "not ok 1\n");
10print (mkdir('blurfl',0777) ? "not ok 2\n" : "ok 2\n");
bf38876a 11print ($! =~ /exists/ ? "ok 3\n" : "not ok 3\n");
a687059c 12print (-d 'blurfl' ? "ok 4\n" : "not ok 4\n");
13print (rmdir('blurfl') ? "ok 5\n" : "not ok 5\n");
14print (rmdir('blurfl') ? "not ok 6\n" : "ok 6\n");
ac58e20f 15print ($! =~ /such|exist/ ? "ok 7\n" : "not ok 7\n");