diff options
Diffstat (limited to 'test/pamfile.test')
-rwxr-xr-x | test/pamfile.test | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/test/pamfile.test b/test/pamfile.test index aa3e2895..16d084ea 100755 --- a/test/pamfile.test +++ b/test/pamfile.test @@ -31,10 +31,16 @@ echo "Error messages should appear below the line." 1>&2 echo "-----------------------------------------------------------" 1>&2 pamfile -size -machine testimg.ppm > ${test_out} || \ - echo -n "Expected failure 1"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 1" + test -s ${test_out}; echo " "$? + rm -f {test_out} + pamfile -count -machine testimg.ppm > ${test_out} || \ - echo -n "Expected failure 2"; test -s ${test_out}; echo " "$? -head -n1 testimg.ppm | pamfile > ${test_out} || \ - echo -n "Expected failure 3"; test -s ${test_out}; echo " "$? + echo -n "Expected failure 2" + test -s ${test_out}; echo " "$? + rm -f {test_out} -rm ${test_out} +head -n1 testimg.ppm | pamfile > ${test_out} || \ + echo -n "Expected failure 3" + test -s ${test_out}; echo " "$? + rm -f {test_out} |