Changeset 4364 for zzuf/trunk/test/check-utils
- Timestamp:
- 02/15/10 22:25:30 (3 years ago)
- File:
-
- 1 edited
-
zzuf/trunk/test/check-utils (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
zzuf/trunk/test/check-utils
r4287 r4364 14 14 . "$(dirname "$0")/functions.inc" 15 15 16 HAVE_GETLINE=$("$ZZ CAT" -l | grep >/dev/null 2>&1 '^ getline(' && echo "y")17 HAVE_GETDELIM=$("$ZZ CAT" -l | grep >/dev/null 2>&1 '^ getdelim(' && echo "y")18 HAVE_GETC_UNLOCKED=$("$ZZ CAT" -l | grep >/dev/null 2>&1 '^ getc_unlocked(' && echo "y")19 HAVE_FGETC_UNLOCKED=$("$ZZ CAT" -l | grep >/dev/null 2>&1 '^ fgetc_unlocked(' && echo "y")16 HAVE_GETLINE=$("$ZZAT" -l | grep >/dev/null 2>&1 '^ getline(' && echo "y") 17 HAVE_GETDELIM=$("$ZZAT" -l | grep >/dev/null 2>&1 '^ getdelim(' && echo "y") 18 HAVE_GETC_UNLOCKED=$("$ZZAT" -l | grep >/dev/null 2>&1 '^ getc_unlocked(' && echo "y") 19 HAVE_FGETC_UNLOCKED=$("$ZZAT" -l | grep >/dev/null 2>&1 '^ fgetc_unlocked(' && echo "y") 20 20 21 21 checkutils() … … 71 71 esac 72 72 # Regression tests for stuff that used to break 73 check "$ZZOPTS" "$ZZ CAT -x \"fread(1,33000) fseek(1,SEEK_SET) fread(1,1) fseek(4093,SEEK_CUR) fread(1,1) fseek(1,SEEK_CUR) fread(1,1)\" $file" \73 check "$ZZOPTS" "$ZZAT -x \"fread(1,33000) fseek(1,SEEK_SET) fread(1,1) fseek(4093,SEEK_CUR) fread(1,1) fseek(1,SEEK_CUR) fread(1,1)\" $file" \ 74 74 "eglibc (2.9-21) bug regression" 75 75 if [ "$HAVE_GET_UNLOCKED $HAVE_GETLINE" = "y y" ]; then 76 check "$ZZOPTS" "$ZZ CAT -x \"repeat(33000,getc_unlocked(),feof(10),ungetc(),getline()))\" $file" \76 check "$ZZOPTS" "$ZZAT -x \"repeat(33000,getc_unlocked(),feof(10),ungetc(),getline()))\" $file" \ 77 77 "sed getc_unlocked() bug regression" 78 78 fi … … 100 100 "fread(1,33000) fseek(1000,SEEK_CUR) repeat(-1,fgetc(),feof(10))" \ 101 101 ; do 102 check "$ZZOPTS" "$ZZ CAT -x \"$n\" $file" "$n"102 check "$ZZOPTS" "$ZZAT -x \"$n\" $file" "$n" 103 103 done 104 104 # Platform-specific tests … … 109 109 "repeat(-1,fgetc(),feof(10),ungetc(),getline())" \ 110 110 ; do 111 check "$ZZOPTS" "$ZZ CAT -x \"$n\" $file" "$n"111 check "$ZZOPTS" "$ZZAT -x \"$n\" $file" "$n" 112 112 done 113 113 fi … … 117 117 "repeat(10,getdelim(' ')) fread(1,33000)" \ 118 118 ; do 119 check "$ZZOPTS" "$ZZ CAT -x \"$n\" $file" "$n"119 check "$ZZOPTS" "$ZZAT -x \"$n\" $file" "$n" 120 120 done 121 121 fi … … 128 128 "fread(1,33000) fseek(1000,SEEK_CUR) repeat(-1,getc_unlocked(),feof(10))" \ 129 129 ; do 130 check "$ZZOPTS" "$ZZ CAT -x \"$n\" $file" "$n"130 check "$ZZOPTS" "$ZZAT -x \"$n\" $file" "$n" 131 131 done 132 132 fi … … 138 138 "repeat(8000,fgetc_unlocked()) fread(1,33000)" \ 139 139 ; do 140 check "$ZZOPTS" "$ZZ CAT -x \"$n\" $file" "$n"140 check "$ZZOPTS" "$ZZAT -x \"$n\" $file" "$n" 141 141 done 142 142 fi
Note: See TracChangeset
for help on using the changeset viewer.
