summaryrefslogtreecommitdiff
path: root/t/op.mkdir
diff options
context:
space:
mode:
Diffstat (limited to 't/op.mkdir')
-rw-r--r--t/op.mkdir15
1 files changed, 15 insertions, 0 deletions
diff --git a/t/op.mkdir b/t/op.mkdir
new file mode 100644
index 0000000000..93e2ccdde4
--- /dev/null
+++ b/t/op.mkdir
@@ -0,0 +1,15 @@
+#!./perl
+
+# $Header: op.mkdir,v 3.0 89/10/18 15:30:05 lwall Locked $
+
+print "1..7\n";
+
+`rm -rf blurfl`;
+
+print (mkdir('blurfl',0666) ? "ok 1\n" : "not ok 1\n");
+print (mkdir('blurfl',0666) ? "not ok 2\n" : "ok 2\n");
+print ($! == 17 ? "ok 3\n" : "not ok 3\n");
+print (-d 'blurfl' ? "ok 4\n" : "not ok 4\n");
+print (rmdir('blurfl') ? "ok 5\n" : "not ok 5\n");
+print (rmdir('blurfl') ? "not ok 6\n" : "ok 6\n");
+print ($! == 2 ? "ok 7\n" : "not ok 7\n");