summaryrefslogtreecommitdiff
path: root/tests/usr.bin
diff options
context:
space:
mode:
authorjruoho <jruoho@NetBSD.org>2012-03-18 19:21:53 +0000
committerjruoho <jruoho@NetBSD.org>2012-03-18 19:21:53 +0000
commit10e42cf1689fa05cebf8ee882bc56e3ff2003cc6 (patch)
treeee08fa25feb7707661d4f1874840d9b30aa043a6 /tests/usr.bin
parentff422ce3ca29808be9acad3cea688cf13d3ef2a4 (diff)
Add a better check for the previous.
Diffstat (limited to 'tests/usr.bin')
-rw-r--r--tests/usr.bin/find/t_find.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/usr.bin/find/t_find.sh b/tests/usr.bin/find/t_find.sh
index 915302bfddc..e8b39974ba6 100644
--- a/tests/usr.bin/find/t_find.sh
+++ b/tests/usr.bin/find/t_find.sh
@@ -1,4 +1,4 @@
-# $NetBSD: t_find.sh,v 1.4 2012/03/18 19:11:30 jruoho Exp $
+# $NetBSD: t_find.sh,v 1.5 2012/03/18 19:21:53 jruoho Exp $
#
# Copyright (c) 2012 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -30,13 +30,20 @@
atf_test_case emptyperm
emptyperm_head() {
- atf_set "descr" "Test that 'find -empty' returns true (PR bin/44179)"
+ atf_set "descr" "Test that 'find -empty' does not error out " \
+ "when directory access is denied (PR bin/44179)"
atf_set "require.user" "unprivileged"
}
emptyperm_body() {
- # The test assumes that $dir is drwxrwx---.
+ # The case assumes that at least some directories
+ # in /var are unavailable for the user '_tests'.
+ #
+ atf_check -s exit:1 -o save:output.file \
+ -e not-empty -x "find /var -empty -type d"
+
+ # The case assumes that $dir is drwxrwx---.
#
dir="/var/quotas"