diff options
Diffstat (limited to 'test/pnmtile.test')
-rwxr-xr-x | test/pnmtile.test | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/pnmtile.test b/test/pnmtile.test index b72ef946..74bae013 100755 --- a/test/pnmtile.test +++ b/test/pnmtile.test @@ -29,21 +29,21 @@ echo "Error messages should appear below the line." 1>&2 echo "-----------------------------------------------------------" 1>&2 pnmtile 100 testgrid.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} pnmtile 100 0 testgrid.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} pnmtile 0 100 testgrid.pbm > ${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} pnmtile 100 100 100 testgrid.pbm > ${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} |