Changeset 4281


Ignore:
Timestamp:
Jan 19, 2010, 1:44:15 PM (7 years ago)
Author:
sam
Message:

Fix a bug in the -s test script that failed to detect failures.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/test/check-zzuf-s-seed

    r4279 r4281  
    1616start_test "zzuf -s test"
    1717
    18 for ratio in 1 0.1 0.01 0.001 0.0001; do
    19   if test $ratio = 0.0001; then
    20     bytes=1024
    21   elif test $ratio = 0.001; then
    22     bytes=8192
    23   else
    24     bytes=32768
    25   fi
     18t=0
     19while : ; do
     20  case $t in
     21    0) ratio=1; bytes=32768 ;;
     22    1) ratio=0.1; bytes=32768 ;;
     23    2) ratio=0.01; bytes=32768 ;;
     24    3) ratio=0.001; bytes=8192 ;;
     25    4) ratio=0.0001; bytes=1024 ;;
     26    *) break ;;
     27  esac
     28  t=$(expr $t + 1)
    2629  new_test "$bytes B of zeroes, ratio $ratio"
    2730  zeroes=$(expr $bytes '*' 4)
     
    3336    passes=$(expr '(' $passes '*' 7 + 3 ')' / 4)
    3437  done
    35   if test $passes -lt 2000000; then
     38  if test $passes -lt 200000; then
    3639      pass_test " ok"
    3740  else
Note: See TracChangeset for help on using the changeset viewer.