Module Name: src
Committed By: jruoho
Date: Sun Mar 18 19:21:53 UTC 2012
Modified Files:
src/tests/usr.bin/find: t_find.sh
Log Message:
Add a better check for the previous.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/usr.bin/find/t_find.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/usr.bin/find/t_find.sh
diff -u src/tests/usr.bin/find/t_find.sh:1.4 src/tests/usr.bin/find/t_find.sh:1.5
--- src/tests/usr.bin/find/t_find.sh:1.4 Sun Mar 18 19:11:30 2012
+++ src/tests/usr.bin/find/t_find.sh Sun Mar 18 19:21:53 2012
@@ -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"