From f49f291939afae44bda438bf2509c7ba20a2a78f Mon Sep 17 00:00:00 2001 From: Gilad Arnold Date: Fri, 13 Nov 2015 13:16:14 -0800 Subject: Enable matching any perm bits. Includes tests for the new feature, and a failure case for the minimal perms test as well. Also some typo fixing / massaging the help text so it fits in 80 columns. --- tests/find.test | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests/find.test') diff --git a/tests/find.test b/tests/find.test index 2f17bf76..71a35067 100755 --- a/tests/find.test +++ b/tests/find.test @@ -58,8 +58,14 @@ testing "find -perm (exact success)" \ "find perm -type f -perm 0444" "perm/all-read-only\n" "" "" testing "find -perm (exact failure)" \ "find perm -type f -perm 0400" "" "" "" -testing "find -perm (at least)" \ +testing "find -perm (min success)" \ "find perm -type f -perm -0400" "perm/all-read-only\n" "" "" +testing "find -perm (min failure)" \ + "find perm -type f -perm -0600" "" "" "" +testing "find -perm (any success)" \ + "find perm -type f -perm -0444" "perm/all-read-only\n" "" "" +testing "find -perm (any failure)" \ + "find perm -type f -perm -0222" "" "" "" # Still fails -- cgit v1.2.3