aboutsummaryrefslogtreecommitdiff
path: root/testsuite/readlink.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/readlink.tests')
-rwxr-xr-xtestsuite/readlink.tests11
1 files changed, 8 insertions, 3 deletions
diff --git a/testsuite/readlink.tests b/testsuite/readlink.tests
index c7fc8adf0..e9d8da0fc 100755
--- a/testsuite/readlink.tests
+++ b/testsuite/readlink.tests
@@ -21,10 +21,15 @@ testing "readlink on a link" "readlink ./$TESTLINK" "./$TESTFILE\n" "" ""
21 21
22optional FEATURE_READLINK_FOLLOW 22optional FEATURE_READLINK_FOLLOW
23 23
24testing "readlink -f on a file" "readlink -f ./$TESTFILE" "$PWD/$TESTFILE\n" "" "" 24# shell's $PWD may leave symlinks unresolved.
25testing "readlink -f on a link" "readlink -f ./$TESTLINK" "$PWD/$TESTFILE\n" "" "" 25# "pwd" may be a built-in and have the same problem.
26# External pwd _can't_ have that problem (current dir on Unix is physical).
27pwd=`which pwd`
28pwd=`$pwd`
29testing "readlink -f on a file" "readlink -f ./$TESTFILE" "$pwd/$TESTFILE\n" "" ""
30testing "readlink -f on a link" "readlink -f ./$TESTLINK" "$pwd/$TESTFILE\n" "" ""
26testing "readlink -f on an invalid link" "readlink -f ./$FAILLINK" "" "" "" 31testing "readlink -f on an invalid link" "readlink -f ./$FAILLINK" "" "" ""
27testing "readlink -f on a wierd dir" "readlink -f $TESTDIR/../$TESTFILE" "$PWD/$TESTFILE\n" "" "" 32testing "readlink -f on a wierd dir" "readlink -f $TESTDIR/../$TESTFILE" "$pwd/$TESTFILE\n" "" ""
28 33
29 34
30# clean up 35# clean up