--- trunk/grubby/test.sh 2012/07/02 12:46:11 1837 +++ trunk/grubby/test.sh 2012/07/02 13:14:11 1857 @@ -82,13 +82,13 @@ echo "$testing ... $mode $cfg $correct" runme=( ./grubby "$mode" $BIO -c "$cfg" "$@" ) - if "${runme[@]}" |& cmp "$correct" > /dev/null; then + if "${runme[@]}" 2>&1 | cmp "$correct" > /dev/null; then (( pass++ )) if $opt_verbose; then echo ------------------------------------------------------------- echo -n "PASS: " printf "%q " "${runme[@]}"; echo - "${runme[@]}" |& diff -U30 "$cfg" - + "${runme[@]}" 2>&1 | diff -U30 "$cfg" - echo fi else @@ -96,7 +96,7 @@ echo ------------------------------------------------------------- echo -n "FAIL: " printf "%q " "${runme[@]}"; echo - "${runme[@]}" |& diff -U30 "$correct" - + "${runme[@]}" 2>&1 | diff -U30 "$correct" - echo fi } @@ -126,6 +126,7 @@ done export MALLOC_CHECK_=2 +export MALLOC_PERTURB_=1 testing="Parse/write comparison" for n in test/*.[0-9]*; do