commit 0b4b363c471112734f19418bd352371d5f33ed0d parent f32c8595d8a8947ad41bded0f8734055dc0c21ab Author: Heikki Lindholm <holin@iki.fi> Date: Fri, 27 Jun 2008 20:41:01 +0000 use traps Diffstat:
| M | src/test/fuzz_default.sh | | | 1 | + |
| M | src/test/fuzz_thumbnail.sh | | | 7 | ++++++- |
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/test/fuzz_default.sh b/src/test/fuzz_default.sh @@ -25,6 +25,7 @@ do exit 1 fi seed=$ZZSTARTSEED + trap "echo crashed by $tmpfile ; exit 1" SEGV while [ $seed -lt $ZZSTOPSEED ] do echo "file $file seed $seed" diff --git a/src/test/fuzz_thumbnail.sh b/src/test/fuzz_thumbnail.sh @@ -25,11 +25,16 @@ do exit 1 fi seed=$ZZSTARTSEED + trap "echo crashed by $tmpfile ; exit 1" SEGV while [ $seed -lt $ZZSTOPSEED ] do echo "file $file seed $seed" zzuf -s $seed cat "$file" > "$tmpfile" - "$bindir/extract" -n -l libextractor_thumbnail:libextractor_mime "$tmpfile" > /dev/null + if ! "$bindir/extract" -n -l libextractor_thumbnail:libextractor_mime "$tmpfile" > /dev/null + then + rm -f "$tmpfile" + exit 1 + fi seed=`expr $seed + 1` done rm -f "$tmpfile"