From 04c717a4cccf6cce662138d3286a449770f478eb Mon Sep 17 00:00:00 2001 From: giraffedata Date: Wed, 21 Apr 2021 00:05:00 +0000 Subject: Test invalid command line arguments git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4090 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- test/pgmramp.test | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'test/pgmramp.test') diff --git a/test/pgmramp.test b/test/pgmramp.test index 3ec73749..50a3cf6d 100755 --- a/test/pgmramp.test +++ b/test/pgmramp.test @@ -31,14 +31,17 @@ test_out=${tmpdir}/test_out for combination in "-lr -tb" "-lr -rectangle" "-rectangle -ellipse" do pgmramp $combination 10 10 > ${test_out} || \ - echo -n "Expected failure: $combination" ; test -s ${test_out}; echo " "$? + echo -n "Expected failure: $combination" + test -s ${test_out}; echo " "$? + rm -f ${test_out} done pgmramp -lr 1 > ${test_out} || \ echo -n "Expected failure: insufficient parameters"; \ test -s ${test_out}; echo " "$? + rm -f ${test_out} + pgmramp -tb 1 1 1 > ${test_out} || \ echo -n "Expected failure: excessive parameters"; \ test -s ${test_out}; echo " "$? - -rm ${test_out} + rm -f ${test_out} -- cgit 1.4.1