grep: add proper support for pattern_list
[oweals/busybox.git] / testsuite / find.tests
index 78dfa123033e9f881d144c22159ba88aba5ee663..138236c81bc90e5710ecf8050cb1844c80ec891a 100755 (executable)
@@ -41,6 +41,33 @@ testing "find -exec exitcode 4" \
        "1\n" \
        "" ""
 SKIP=
+optional FEATURE_FIND_MAXDEPTH
+testing "find / -maxdepth 0 -name /" \
+       "find / -maxdepth 0 -name /" \
+       "/\n" \
+       "" ""
+testing "find // -maxdepth 0 -name /" \
+       "find // -maxdepth 0 -name /" \
+       "//\n" \
+       "" ""
+testing "find / -maxdepth 0 -name //" \
+       "find / -maxdepth 0 -name //" \
+       "" \
+       "" ""
+testing "find // -maxdepth 0 -name //" \
+       "find // -maxdepth 0 -name //" \
+       "" \
+       "" ""
+SKIP=
+
+testing "find ./// -name ." \
+       "find ./// -name ." \
+       ".///\n" \
+       "" ""
+testing "find ./// -name .///" \
+       "find ./// -name .///" \
+       "" \
+       "" ""
 
 # testing "description" "command" "result" "infile" "stdin"