diff options
Diffstat (limited to 'test/pamdepth.test')
-rwxr-xr-x | test/pamdepth.test | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/test/pamdepth.test b/test/pamdepth.test index d97992a1..e938a630 100755 --- a/test/pamdepth.test +++ b/test/pamdepth.test @@ -24,17 +24,7 @@ pamdepth 255 testimg.ppm | cmp -s - testimg.ppm # Test Invalid echo "Test Invalid" -echo 1>&2 -echo "Invalid command-line argument combinations." 1>&2 -echo "Error messages should appear below the line." 1>&2 -echo "-----------------------------------------------------------" 1>&2 +. ${srcdir}/test-invalid.inc -pamdepth 0 testgrid.pbm > ${test_out} || \ - printf "Expected failure 1 " - test -s ${test_out} && echo "unexpected output" || echo "(no output)" - rm -f ${test_out} - -pamdepth 65536 testimg.ppm > ${test_out} || \ - printf "Expected failure 2 " - test -s ${test_out} && echo "unexpected output" || echo "(no output)" - rm -f ${test_out} +invCmd "pamdepth 0 testgrid.pbm" +invCmd "pamdepth 65536 testimg.ppm" |