diff options
author | Denys Vlasenko | 2011-03-12 03:12:36 +0100 |
---|---|---|
committer | Denys Vlasenko | 2011-03-12 03:12:36 +0100 |
commit | ea684c6aaf23ead57fac74c3ceaa651c1ae625ec (patch) | |
tree | da6e00ce493280918139e6d4ae504be23ad8af8c /testsuite | |
parent | 8345b2bd5ea28bd8d07886e615b9c2d5ab35477d (diff) | |
download | busybox-ea684c6aaf23ead57fac74c3ceaa651c1ae625ec.zip busybox-ea684c6aaf23ead57fac74c3ceaa651c1ae625ec.tar.gz |
ls: fix handling of symlinks by option -1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/ls.tests | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/ls.tests b/testsuite/ls.tests index 1669579..e228465 100755 --- a/testsuite/ls.tests +++ b/testsuite/ls.tests @@ -251,6 +251,16 @@ test x"$CONFIG_UNICODE_SUPPORT" = x"y" \ 0110_5.3.2__U+FFFF_=_ef_bf_bf_=_"?"_______________________________________| ' "" "" +rm -rf ls.testdir 2>/dev/null +mkdir ls.testdir || exit 1 + +# testing "test name" "command" "expected result" "file input" "stdin" + +testing "ls symlink_to_dir" \ +"touch ls.testdir/A ls.testdir/B; ln -s ls.testdir ls.link; ls ls.link; ls -1 ls.link/; ls -1 ls.link; rm -f ls.link" \ +"A\nB\nA\nB\nA\nB\n" \ +"" "" + # Clean up rm -rf ls.testdir 2>/dev/null |