From 270c5f0ef4747ad5a1a418659213514be6cd1bda Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sun, 22 Sep 2019 15:10:06 +0000 Subject: Miscellaneous test updates git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3686 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- test/pnmcrop1.test | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test/pnmcrop1.test') diff --git a/test/pnmcrop1.test b/test/pnmcrop1.test index 6b37da23..34c7534a 100755 --- a/test/pnmcrop1.test +++ b/test/pnmcrop1.test @@ -51,13 +51,15 @@ for input_file in ${test_pbm} ${test_ppm} rm ${test_pbm} ${test_ppm} # Test 3 +echo "Test Invalid" + +test_out=${tmpdir}/test_out echo 1>&2 echo "Invalid command-line argument combinations." 1>&2 echo "Error messages should appear below the line." 1>&2 echo "-----------------------------------------------------------" 1>&2 -echo Test 3 for option in "-reportfull -reportsize" \ "-reportfull -borderfile=testgrid.pbm" \ "-reportsize -borderfile=testgrid.pbm" \ @@ -71,5 +73,7 @@ for option in "-reportfull -reportsize" \ "-bg-color=black -closeness=101" do echo ${option} - pnmcrop -reportfull ${option} testgrid.pbm || echo expected failure + pnmcrop -reportfull ${option} testgrid.pbm > ${test_out} || \ + echo -n "Expected failure: " ${option}; test -s ${test_out}; echo " "$? + rm ${test_out} done -- cgit 1.4.1