aboutsummaryrefslogtreecommitdiffstats
path: root/perl/test/unlink.t
diff options
context:
space:
mode:
Diffstat (limited to 'perl/test/unlink.t')
-rw-r--r--perl/test/unlink.t14
1 files changed, 14 insertions, 0 deletions
diff --git a/perl/test/unlink.t b/perl/test/unlink.t
new file mode 100644
index 0000000..eef8c1a
--- /dev/null
+++ b/perl/test/unlink.t
@@ -0,0 +1,14 @@
+#!/usr/bin/perl
+use test::helper qw($_real $_point);
+use Test::More;
+plan tests => 4;
+chdir($_point);
+system("touch file");
+ok(-f "file","file exists");
+chdir($_real);
+ok(-f "file","file really exists");
+chdir($_point);
+unlink("file");
+ok(! -f "file","file unlinked");
+chdir($_real);
+ok(! -f "file","file really unlinked");