diff options
author | Bob Friesenhahn <bfriesen@simple.dallas.tx.us> | 2008-12-30 21:59:54 +0000 |
---|---|---|
committer | Bob Friesenhahn <bfriesen@simple.dallas.tx.us> | 2008-12-30 21:59:54 +0000 |
commit | bb9ee50811a90ae78c84c4fd7111d079f58f4d78 (patch) | |
tree | 13eec1eeb9f20a1b8ef0e6ed4ba76106235c3709 | |
parent | a6294fe08936ab721772728a0a62041179e5f29d (diff) | |
download | libtiff-git-bb9ee50811a90ae78c84c4fd7111d079f58f4d78.tar.gz |
Don't throw away output to stderr. Collect and display it if there is an error.
-rwxr-xr-x | test/tiffcp-thumbnail.sh | 8 |
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 |