diff options
Diffstat (limited to 'test/pnmcrop3.test')
-rwxr-xr-x | test/pnmcrop3.test | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/pnmcrop3.test b/test/pnmcrop3.test index 1e8da345..3d32ca21 100755 --- a/test/pnmcrop3.test +++ b/test/pnmcrop3.test @@ -68,13 +68,13 @@ echo "Error messages should appear below the line." 1>&2 echo "--------------------------------------------" 1>&2 pnmcrop -borderfile=${border_ppm} ${test_pbm} > ${test_out} || \ - printf "Expected failure 1"; - test -s ${test_out}; echo " "$? - rm ${test_out} + printf "Expected failure 1 " + test -s ${test_out} && echo "unexpected output" || echo "(no output)" + rm ${test_out} pnmcrop -borderfile=${border_pbm} ${test_ppm} > ${test_out} || \ - printf "Expected failure 2"; - test -s ${test_out}; echo " "$? - rm ${test_out} + printf "Expected failure 2 " + test -s ${test_out} && echo "unexpected output" || echo "(no output)" + rm ${test_out} rm ${test_pbm} ${test_ppm} ${border_pbm} ${border_ppm} ${gray_pgm} |