Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/util/df Add '-n' option to h_df helper tool to avoid p...



details:   https://anonhg.NetBSD.org/src/rev/5fcfe6eec532
branches:  trunk
changeset: 758256:5fcfe6eec532
user:      njoly <njoly%NetBSD.org@localhost>
date:      Fri Oct 29 14:43:10 2010 +0000

description:
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.

diffstat:

 tests/util/df/t_df.sh |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c839f22403ca -r 5fcfe6eec532 tests/util/df/t_df.sh
--- a/tests/util/df/t_df.sh     Fri Oct 29 09:34:03 2010 +0000
+++ b/tests/util/df/t_df.sh     Fri Oct 29 14:43:10 2010 +0000
@@ -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()



Home | Main Index | Thread Index | Old Index