diff options
Diffstat (limited to 'test/pamchannel.test')
-rwxr-xr-x | test/pamchannel.test | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/test/pamchannel.test b/test/pamchannel.test index 2f772bf9..f3399343 100755 --- a/test/pamchannel.test +++ b/test/pamchannel.test @@ -41,17 +41,8 @@ test_out=${tmpdir}/test_out echo "Test Invalid" -pamchannel -infile testgrid.pbm 1 > ${test_out} || \ - printf "Expected failure 1 " - test -s ${test_out} && echo "unexpected output" || echo "(no output)" - rm -f ${test_out} - -pamchannel -infile testimg.ppm 3 > ${test_out} || \ - printf "Expected failure 2 " - test -s ${test_out} && echo "unexpected output" || echo "(no output)" - rm -f ${test_out} - -pamtopam testimg.ppm | pamchannel -infile=- 4 > ${test_out} || \ - printf "Expected failure 3 " - test -s ${test_out} && echo "unexpected output" || echo "(no output)" - rm -f ${test_out} +. ${srcdir}/test-invalid.inc + +invCmd "pamchannel -infile testgrid.pbm 1" +invCmd "pamchannel -infile testimg.ppm 3" +invCmd "pamtopam testimg.ppm | pamchannel -infile=- 4" |