Module Name: src
Committed By: njoly
Date: Fri Oct 29 14:43:11 UTC 2010
Modified Files:
src/tests/util/df: t_df.sh
Log Message:
Add '-n' option to h_df helper tool to avoid picking wrong values if
the tested system has a similar mounted file system. Solve PR/43871.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/util/df/t_df.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/util/df/t_df.sh
diff -u src/tests/util/df/t_df.sh:1.5 src/tests/util/df/t_df.sh:1.6
--- src/tests/util/df/t_df.sh:1.5 Thu Jun 10 15:44:44 2010
+++ src/tests/util/df/t_df.sh Fri Oct 29 14:43:10 2010
@@ -1,4 +1,4 @@
-# $NetBSD: t_df.sh,v 1.5 2010/06/10 15:44:44 pooka Exp $
+# $NetBSD: t_df.sh,v 1.6 2010/10/29 14:43:10 njoly Exp $
#
# Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -81,7 +81,7 @@
/dev/wd0e 10485688 2859932 7625756 27% /mount/windows/C
EOF
atf_check -s eq:0 -o file:expout -e empty \
- -x "BLOCKSIZE=1k $(atf_get_srcdir)/h_df"
+ -x "BLOCKSIZE=1k $(atf_get_srcdir)/h_df -n"
}
atf_test_case hflag
@@ -140,7 +140,7 @@
/dev/wd0e 10G 2.7G 7.3G 27% /mount/windows/C
EOF
atf_check -s eq:0 -o file:expout -e empty \
- -x "BLOCKSIZE=1k $(atf_get_srcdir)/h_df -h"
+ -x "BLOCKSIZE=1k $(atf_get_srcdir)/h_df -hn"
}
atf_init_test_cases()