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.
This commit is contained in:
njoly 2010-10-29 14:43:10 +00:00
parent 775a0dd1d6
commit a62c9cdf52
1 changed files with 3 additions and 3 deletions

View File

@ -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 @@ filer:/ 1202716672 1202716672 -180407500 117% /filer
/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 @@ filer:/ 1.1T 1.1T -172G 117% /filer
/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()