Changeset 4120 for zzuf/trunk


Ignore:
Timestamp:
Dec 14, 2009, 3:55:25 AM (10 years ago)
Author:
Sam Hocevar
Message:

Add a workaround in the test suite for a cowdancer limitation causing .ilist
corruption and use ulimit instead of limit.

Location:
zzuf/trunk/test
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/test/check-div0

    r4119 r4120  
    33. "$(dirname "$0")/functions.inc"
    44
    5 limit coredumpsize 0
     5ulimit -c 0
    66
    77PROGRAM="$DIR/bug-div0"
     
    2121
    2222new_test "zzuf -qi -r0 bug-div0 < /file-00"
    23 if ! "$ZZUF" -r0 -qi "$PROGRAM" < "$DIR/file-00"; then
     23if ! $ZZUF -r0 -qi "$PROGRAM" < "$DIR/file-00"; then
    2424    fail_test " unexpected exit status $?"
    2525else
     
    2828
    2929new_test "zzuf -qi bug-div0 < file-00"
    30 if "$ZZUF" -qi "$PROGRAM" < "$DIR/file-00"; then
     30if $ZZUF -qi "$PROGRAM" < "$DIR/file-00"; then
    3131    fail_test " unexpected exit status $?"
    3232else
  • zzuf/trunk/test/check-memory

    r4119 r4120  
    33. "$(dirname "$0")/functions.inc"
    44
    5 limit coredumpsize 0
     5ulimit -c 0
    66
    77PROGRAM="$DIR/bug-memory"
     
    2121
    2222new_test "zzuf -qi -r0 bug-memory < /file-00"
    23 if ! "$ZZUF" -r0 -qi "$PROGRAM" < "$DIR/file-00"; then
     23if ! $ZZUF -r0 -qi "$PROGRAM" < "$DIR/file-00"; then
    2424    fail_test " unexpected exit status $?"
    2525else
     
    2828
    2929new_test "zzuf -qi bug-memory < file-00"
    30 if "$ZZUF" -M 256 -qi "$PROGRAM" < "$DIR/file-00"; then
     30if $ZZUF -M 256 -qi "$PROGRAM" < "$DIR/file-00"; then
    3131    fail_test " unexpected exit status $?"
    3232else
  • zzuf/trunk/test/check-overflow

    r4119 r4120  
    33. "$(dirname "$0")/functions.inc"
    44
    5 limit coredumpsize 0
     5ulimit -c 0
    66
    77PROGRAM="$DIR/bug-overflow"
     
    2121
    2222new_test "zzuf -qi -r0 bug-overflow < /file-00"
    23 if ! "$ZZUF" -r0 -qi "$PROGRAM" < "$DIR/file-00"; then
     23if ! $ZZUF -r0 -qi "$PROGRAM" < "$DIR/file-00"; then
    2424    fail_test " unexpected exit status $?"
    2525else
     
    2828
    2929new_test "zzuf -qi bug-overflow < file-00"
    30 if "$ZZUF" -qi "$PROGRAM" < "$DIR/file-00"; then
     30if $ZZUF -qi "$PROGRAM" < "$DIR/file-00"; then
    3131    fail_test " unexpected exit status $?"
    3232else
  • zzuf/trunk/test/check-rng

    r2573 r4120  
    1414    new_test "$mib MiB of zeroes, ratio $r"
    1515    for x in 0 1 2 3 4; do
    16         ret=`dd if=/dev/zero bs=1048576 count=$mib 2>/dev/null | "$ZZUF" -s $s2 -r $r | "$ZZERO"`
     16        ret=`dd if=/dev/zero bs=1048576 count=$mib 2>/dev/null | $ZZUF -s $s2 -r $r | "$ZZERO"`
    1717        if [ "$rmax" = -1 -o "$ret" -gt "$rmax" ]; then rmax=$ret; fi
    1818        if [ "$rmin" = -1 -o "$ret" -lt "$rmin" ]; then rmin=$ret; fi
  • zzuf/trunk/test/functions.inc

    r2573 r4120  
    33
    44DIR="$(dirname "$0")"
    5 ZZUF="$DIR/../src/zzuf"
     5ZZUF="$DIR/../src/zzuf -E '[.]ilist$'"
    66
    77ZZCAT="$DIR/zzcat"
Note: See TracChangeset for help on using the changeset viewer.