aboutsummaryrefslogtreecommitdiff
path: root/testsuite/find.tests
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-11-25 20:14:33 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2016-11-25 20:14:33 +0100
commitccc9985c455753298a8799a4d12d5f531c67ae81 (patch)
tree78d6082132ec226ba81ccb797c6defe927d67b42 /testsuite/find.tests
parent4b89d512b1215e7b9d619af03496540d30cbbd1a (diff)
downloadbusybox-w32-ccc9985c455753298a8799a4d12d5f531c67ae81.tar.gz
busybox-w32-ccc9985c455753298a8799a4d12d5f531c67ae81.tar.bz2
busybox-w32-ccc9985c455753298a8799a4d12d5f531c67ae81.zip
find: fix handling of trailing slashes in -name PATTERN comparisons
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/find.tests')
-rwxr-xr-xtestsuite/find.tests27
1 files changed, 27 insertions, 0 deletions
diff --git a/testsuite/find.tests b/testsuite/find.tests
index 78dfa1230..138236c81 100755
--- a/testsuite/find.tests
+++ b/testsuite/find.tests
@@ -41,6 +41,33 @@ testing "find -exec exitcode 4" \
41 "1\n" \ 41 "1\n" \
42 "" "" 42 "" ""
43SKIP= 43SKIP=
44optional FEATURE_FIND_MAXDEPTH
45testing "find / -maxdepth 0 -name /" \
46 "find / -maxdepth 0 -name /" \
47 "/\n" \
48 "" ""
49testing "find // -maxdepth 0 -name /" \
50 "find // -maxdepth 0 -name /" \
51 "//\n" \
52 "" ""
53testing "find / -maxdepth 0 -name //" \
54 "find / -maxdepth 0 -name //" \
55 "" \
56 "" ""
57testing "find // -maxdepth 0 -name //" \
58 "find // -maxdepth 0 -name //" \
59 "" \
60 "" ""
61SKIP=
62
63testing "find ./// -name ." \
64 "find ./// -name ." \
65 ".///\n" \
66 "" ""
67testing "find ./// -name .///" \
68 "find ./// -name .///" \
69 "" \
70 "" ""
44 71
45# testing "description" "command" "result" "infile" "stdin" 72# testing "description" "command" "result" "infile" "stdin"
46 73