From ccc9985c455753298a8799a4d12d5f531c67ae81 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 25 Nov 2016 20:14:33 +0100 Subject: find: fix handling of trailing slashes in -name PATTERN comparisons Signed-off-by: Denys Vlasenko --- testsuite/find.tests | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'testsuite/find.tests') 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" \ "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" -- cgit v1.2.3