This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
MakeMaker support for pod2html
[perl5.git] / t / op / mkdir.t
CommitLineData
a687059c
LW
1#!./perl
2
79072805 3# $RCSfile: mkdir.t,v $$Revision: 4.1 $$Date: 92/08/07 18:28:06 $
a687059c
LW
4
5print "1..7\n";
6
5aabfad6 7$^O eq 'MSWin32' ? `del /s /q blurfl 2>&1` : `rm -rf blurfl`;
a687059c 8
3458556d
J
9# tests 3 and 7 rather naughtily expect English error messages
10$ENV{'LC_ALL'} = 'C';
b598356e 11$ENV{LANGUAGE} = 'C'; # GNU locale extension
3458556d 12
79a0689e
LW
13print (mkdir('blurfl',0777) ? "ok 1\n" : "not ok 1\n");
14print (mkdir('blurfl',0777) ? "not ok 2\n" : "ok 2\n");
3e3baf6d 15print ($! =~ /exist|denied/ ? "ok 3\n" : "# $!\nnot ok 3\n");
a687059c
LW
16print (-d 'blurfl' ? "ok 4\n" : "not ok 4\n");
17print (rmdir('blurfl') ? "ok 5\n" : "not ok 5\n");
18print (rmdir('blurfl') ? "not ok 6\n" : "ok 6\n");
61ae2fbf 19print ($! =~ /such|exist|not found/i ? "ok 7\n" : "not ok 7\n");