INN commit: trunk/tests/util (inndf.t)
INN Commit
Russ_Allbery at isc.org
Wed Apr 23 19:57:46 UTC 2008
Date: Wednesday, April 23, 2008 @ 12:57:45
Author: iulius
Revision: 7785
Fix the test of inndf for IRIX.
Modified:
trunk/tests/util/inndf.t
---------+
inndf.t | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
Modified: inndf.t
===================================================================
--- inndf.t 2008-04-23 10:12:52 UTC (rev 7784)
+++ inndf.t 2008-04-23 19:57:45 UTC (rev 7785)
@@ -33,7 +33,11 @@
# Make sure df -k works, or we have to just skip this test.
if df -k . > /dev/null 2>&1 ; then
- real=`df -k . | sed 1d | awk '{ print $4 }'`
+ if [ -z "${UNAME_SYSTEM##IRIX[[:alnum:]]*}" ] ; then
+ real=`df -k . | sed 1d | awk '{ print $5 }'`
+ else
+ real=`df -k . | sed 1d | awk '{ print $4 }'`
+ fi
try=`$inndf .`
diff=`expr "$real" - "$try"`
if [ "$diff" -gt 200 ] || [ "$diff" -lt -200 ] ; then
@@ -50,7 +54,9 @@
# is what Reiser and some other file systems return in some versions of
# Linux.
if df -i . > /dev/null 2>&1 ; then
- if [ "${UNAME_SYSTEM}" = "FreeBSD" ] ; then
+ if [ -z "${UNAME_SYSTEM##IRIX[[:alnum:]]*}" ] ; then
+ real=`df -i . | sed 1d | awk '{ print $8 }'`
+ elif [ "${UNAME_SYSTEM}" = "FreeBSD" ] ; then
real=`df -i . | sed 1d | awk '{ print $7 }'`
else
real=`df -i . | sed 1d | awk '{ print $4 }'`
More information about the inn-committers
mailing list