aboutsummaryrefslogtreecommitdiffstats
path: root/perl/test/readlink.t
diff options
context:
space:
mode:
Diffstat (limited to 'perl/test/readlink.t')
-rw-r--r--perl/test/readlink.t11
1 files changed, 11 insertions, 0 deletions
diff --git a/perl/test/readlink.t b/perl/test/readlink.t
new file mode 100644
index 0000000..85b9ffc
--- /dev/null
+++ b/perl/test/readlink.t
@@ -0,0 +1,11 @@
+#!/usr/bin/perl
+use test::helper qw($_point $_real);
+use Test::More;
+plan tests => 4;
+chdir($_real);
+ok(symlink("abc","def"),"OS supports symlinks");
+is(readlink("def"),"abc","OS supports symlinks");
+chdir($_point);
+ok(-l "def","symlink exists");
+is(readlink("def"),"abc","readlink");
+unlink("def");