summaryrefslogtreecommitdiff
path: root/test/tiffcp-thumbnail.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/tiffcp-thumbnail.sh')
-rwxr-xr-xtest/tiffcp-thumbnail.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/tiffcp-thumbnail.sh b/test/tiffcp-thumbnail.sh
index 82fbd16f..a344b35e 100755
--- a/test/tiffcp-thumbnail.sh
+++ b/test/tiffcp-thumbnail.sh
@@ -6,14 +6,15 @@
outfile1=deleteme-in-$$.tif
outfile2=deleteme-out-$$.tif
+stderr=deleteme-stderr-$$.tif
operation=tiffcp
-${TIFFCP} -c g3:1d ${IMG_MINISWHITE_1C_1B} ${outfile1}
+${TIFFCP} -c g3:1d ${IMG_MINISWHITE_1C_1B} ${outfile1} 2> $stderr
status=$?
if test $status -eq 0
then
operation=thumbnail
- ${THUMBNAIL} ${outfile1} ${outfile2} 2> /dev/null
+ ${THUMBNAIL} ${outfile1} ${outfile2} 2>> $stderr
status=$?
fi
@@ -21,8 +22,11 @@ if test $status -eq 0
then
rm -f ${outfile1} ${outfile2}
else
+ cat $stderr
echo "Test failed (${operation} returned ${status}). Please inspect these output files:"
echo " " ${outfile1} ${outfile2}
fi
+rm -f $stderr
+
exit $status