aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-10-06 15:50:15 -0500
committerRob Landley <rob@landley.net>2020-10-06 15:50:15 -0500
commit0f2658c806586190be3aca21826e77fff9e50f1b (patch)
tree0c24bb07fb084b2284b24c40e92429c9f458e862 /tests
parent841a7966d8a34906e1871572709270fe23b2ff9c (diff)
downloadtoybox-0f2658c806586190be3aca21826e77fff9e50f1b.tar.gz
The non-recursive dirtree_path wasn't stripping a trailing / from initial path.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/find.test3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/find.test b/tests/find.test
index a770f366..71a55010 100755
--- a/tests/find.test
+++ b/tests/find.test
@@ -140,4 +140,7 @@ ln -s nowhere broken
testing "-H broken" "find -H broken" "broken\n" "" ""
testing "-L broken" "find -L broken" "broken\n" "" ""
+testing "one slash" 'find /etc/ -maxdepth 1 | grep /passwd\$' '/etc/passwd\n' \
+ '' ''
+
rm -rf dir