about summary refs log tree commit diff
path: root/test/pamdepth.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/pamdepth.test')
-rwxr-xr-xtest/pamdepth.test14
1 files changed, 3 insertions, 11 deletions
diff --git a/test/pamdepth.test b/test/pamdepth.test
index da198973..e938a630 100755
--- a/test/pamdepth.test
+++ b/test/pamdepth.test
@@ -24,15 +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} || \
-   echo -n "Expected failure 1"; test -s ${test_out}; echo " "$?
-
-pamdepth 65536 testimg.ppm > ${test_out} || \
-   echo -n "Expected failure 2"; test -s ${test_out}; echo " "$?
-
-rm ${test_out}
\ No newline at end of file
+invCmd "pamdepth 0 testgrid.pbm"
+invCmd "pamdepth 65536 testimg.ppm"