Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/usr.bin/find Also verify that PR bin/44179 is no longe...
details: https://anonhg.NetBSD.org/src/rev/0ab3e378396a
branches: trunk
changeset: 778192:0ab3e378396a
user: jruoho <jruoho%NetBSD.org@localhost>
date: Sun Mar 18 19:11:30 2012 +0000
description:
Also verify that PR bin/44179 is no longer an issue.
diffstat:
tests/usr.bin/find/t_find.sh | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
diffs (40 lines):
diff -r 0def343ae1bc -r 0ab3e378396a tests/usr.bin/find/t_find.sh
--- a/tests/usr.bin/find/t_find.sh Sun Mar 18 18:32:16 2012 +0000
+++ b/tests/usr.bin/find/t_find.sh Sun Mar 18 19:11:30 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_find.sh,v 1.3 2012/03/18 18:32:16 jruoho Exp $
+# $NetBSD: t_find.sh,v 1.4 2012/03/18 19:11:30 jruoho Exp $
#
# Copyright (c) 2012 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -28,6 +28,22 @@
# POSSIBILITY OF SUCH DAMAGE.
#
+atf_test_case emptyperm
+emptyperm_head() {
+ atf_set "descr" "Test that 'find -empty' returns true (PR bin/44179)"
+ atf_set "require.user" "unprivileged"
+}
+
+emptyperm_body() {
+
+ # The test assumes that $dir is drwxrwx---.
+ #
+ dir="/var/quotas"
+
+ atf_check -s exit:1 -e inline:"find: $dir: Permission denied\n" \
+ -x "find $dir -empty -type d"
+}
+
atf_test_case exit
exit_head() {
atf_set "descr" "Test that find(1) with -exit works (PR bin/44973)"
@@ -49,6 +65,7 @@
}
atf_init_test_cases() {
+ atf_add_test_case emptyperm
atf_add_test_case exit
atf_add_test_case exit_status
}
Home |
Main Index |
Thread Index |
Old Index