aboutsummaryrefslogtreecommitdiffstats
path: root/perl/test/rmdir.t
diff options
context:
space:
mode:
Diffstat (limited to 'perl/test/rmdir.t')
-rw-r--r--perl/test/rmdir.t13
1 files changed, 13 insertions, 0 deletions
diff --git a/perl/test/rmdir.t b/perl/test/rmdir.t
new file mode 100644
index 0000000..36f0378
--- /dev/null
+++ b/perl/test/rmdir.t
@@ -0,0 +1,13 @@
+#!/usr/bin/perl
+use test::helper qw($_real $_point);
+use Test::More;
+plan tests => 5;
+chdir($_real);
+ok(mkdir("dir"),"mkdir");
+ok(-d "dir","dir really exists");
+chdir($_point);
+ok(-d "dir","dir exists");
+rmdir("dir");
+ok(! -d "dir","dir removed");
+chdir($_real);
+ok(! -d "dir","dir really removed");