diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-11 16:27:55 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-11 16:27:55 +0200 |
commit | 69c8c699aaa69e281e4a01be0f48a6498d3ac7cb (patch) | |
tree | d3357d2791f4d20ab75d2f45004f1ccf7928670d /testsuite/readlink.tests | |
parent | 005c492c40ff833a99abd251872ec60661344474 (diff) | |
download | busybox-w32-69c8c699aaa69e281e4a01be0f48a6498d3ac7cb.tar.gz busybox-w32-69c8c699aaa69e281e4a01be0f48a6498d3ac7cb.tar.bz2 busybox-w32-69c8c699aaa69e281e4a01be0f48a6498d3ac7cb.zip |
randconfig fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/readlink.tests')
-rwxr-xr-x | testsuite/readlink.tests | 11 |
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 | ||
22 | optional FEATURE_READLINK_FOLLOW | 22 | optional FEATURE_READLINK_FOLLOW |
23 | 23 | ||
24 | testing "readlink -f on a file" "readlink -f ./$TESTFILE" "$PWD/$TESTFILE\n" "" "" | 24 | # shell's $PWD may leave symlinks unresolved. |
25 | testing "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). | ||
27 | pwd=`which pwd` | ||
28 | pwd=`$pwd` | ||
29 | testing "readlink -f on a file" "readlink -f ./$TESTFILE" "$pwd/$TESTFILE\n" "" "" | ||
30 | testing "readlink -f on a link" "readlink -f ./$TESTLINK" "$pwd/$TESTFILE\n" "" "" | ||
26 | testing "readlink -f on an invalid link" "readlink -f ./$FAILLINK" "" "" "" | 31 | testing "readlink -f on an invalid link" "readlink -f ./$FAILLINK" "" "" "" |
27 | testing "readlink -f on a wierd dir" "readlink -f $TESTDIR/../$TESTFILE" "$PWD/$TESTFILE\n" "" "" | 32 | testing "readlink -f on a wierd dir" "readlink -f $TESTDIR/../$TESTFILE" "$pwd/$TESTFILE\n" "" "" |
28 | 33 | ||
29 | 34 | ||
30 | # clean up | 35 | # clean up |