diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-25 20:14:33 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-25 20:14:33 +0100 |
commit | ccc9985c455753298a8799a4d12d5f531c67ae81 (patch) | |
tree | 78d6082132ec226ba81ccb797c6defe927d67b42 /testsuite/find.tests | |
parent | 4b89d512b1215e7b9d619af03496540d30cbbd1a (diff) | |
download | busybox-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-x | testsuite/find.tests | 27 |
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 | "" "" |
43 | SKIP= | 43 | SKIP= |
44 | optional FEATURE_FIND_MAXDEPTH | ||
45 | testing "find / -maxdepth 0 -name /" \ | ||
46 | "find / -maxdepth 0 -name /" \ | ||
47 | "/\n" \ | ||
48 | "" "" | ||
49 | testing "find // -maxdepth 0 -name /" \ | ||
50 | "find // -maxdepth 0 -name /" \ | ||
51 | "//\n" \ | ||
52 | "" "" | ||
53 | testing "find / -maxdepth 0 -name //" \ | ||
54 | "find / -maxdepth 0 -name //" \ | ||
55 | "" \ | ||
56 | "" "" | ||
57 | testing "find // -maxdepth 0 -name //" \ | ||
58 | "find // -maxdepth 0 -name //" \ | ||
59 | "" \ | ||
60 | "" "" | ||
61 | SKIP= | ||
62 | |||
63 | testing "find ./// -name ." \ | ||
64 | "find ./// -name ." \ | ||
65 | ".///\n" \ | ||
66 | "" "" | ||
67 | testing "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 | ||