INN commit: trunk/tests/util (inndf.t)

INN Commit rra at isc.org
Sun Aug 25 13:13:58 UTC 2013


    Date: Sunday, August 25, 2013 @ 06:13:57
  Author: iulius
Revision: 9531

test suite:  more flexibility for inndf

Increase the allowed difference in the result of the inndf
test suite.  It otherwise sometimes fails when files are
modified on the system, outside INN.

Modified:
  trunk/tests/util/inndf.t

---------+
 inndf.t |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: inndf.t
===================================================================
--- inndf.t	2013-08-25 10:41:14 UTC (rev 9530)
+++ inndf.t	2013-08-25 13:13:57 UTC (rev 9531)
@@ -40,7 +40,7 @@
     fi
     try=`$inndf .`
     diff=`expr "$real" - "$try"`
-    if [ "$diff" -gt 1000 ] || [ "$diff" -lt -1000 ] ; then
+    if [ "$diff" -gt 30000 ] || [ "$diff" -lt -30000 ] ; then
         printcount "not ok"
     else
         printcount "ok"
@@ -67,7 +67,7 @@
         printcount "ok"
     else
         diff=`expr "$real" - "$try"`
-        if [ "$diff" -gt 10 ] || [ "$diff" -lt -10 ] ; then
+        if [ "$diff" -gt 5000 ] || [ "$diff" -lt -5000 ] ; then
             printcount "not ok"
         else
             printcount "ok"



More information about the inn-committers mailing list