diff options
Diffstat (limited to 'test/pnmpsnr.test')
-rwxr-xr-x | test/pnmpsnr.test | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/pnmpsnr.test b/test/pnmpsnr.test index ae6ba3cc..efabe9aa 100755 --- a/test/pnmpsnr.test +++ b/test/pnmpsnr.test @@ -36,23 +36,23 @@ echo "Error messages should appear below the line." 1>&2 echo "-----------------------------------------------------------" 1>&2 pnmpsnr ${b_pbm} ${w_pbm} ${b_pbm} > ${test_out} || \ - printf "Expected failure 1" - test -s ${test_out}; echo " "$? + printf "Expected failure 1 " + test -s ${test_out} && echo "unexpected output" || echo "(no output)" rm -f ${test_out} pnmpsnr ${b_pbm} > ${test_out} || \ - printf "Expected failure 2" - test -s ${test_out}; echo " "$? + printf "Expected failure 2 " + test -s ${test_out} && echo "unexpected output" || echo "(no output)" rm -f ${test_out} pnmpsnr ${b_pbm} ${w_pbm} -target1=100 > ${test_out} || \ - printf "Expected failure 3" - test -s ${test_out}; echo " "$? + printf "Expected failure 3 " + test -s ${test_out} && echo "unexpected output" || echo "(no output)" rm -f ${test_out} pnmpsnr -machine > ${test_out} || \ - printf "Expected failure 4" - test -s ${test_out}; echo " "$? + printf "Expected failure 4 " + test -s ${test_out} && echo "unexpected output" || echo "(no output)" rm -f ${test_out} rm ${b_pbm} ${w_pbm} |