X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=test%2Ftests%2Fbad-input%2Ftest-header;h=8a3251ef54388f2ab4f9447b895de44db9a0a698;hb=b03bb1d9c9cd73aeac2b4003115b5546905433cd;hp=4832106ca14db7d6b50ba7103ac07e22eeddc593;hpb=8b4410a1f3cb75e3d92b61176397655d509f81ee;p=mmh diff --git a/test/tests/bad-input/test-header b/test/tests/bad-input/test-header index 4832106..8a3251e 100644 --- a/test/tests/bad-input/test-header +++ b/test/tests/bad-input/test-header @@ -1,4 +1,9 @@ #!/bin/sh +###################################################### +# +# Test bogus headers (no blank line before body). +# +###################################################### # TODO: Move to a common file tests can source; need more framework... failed=0 @@ -13,7 +18,7 @@ expected=$MH_TEST_DIR/$$.expected actual=$MH_TEST_DIR/$$.actual # Write message with bogus header field (missing blank line, really). -msgfile=$(mhpath new) +msgfile=$(mhpath b) msgnum=$(basename $msgfile) cat > $msgfile < $expected < $actual 2>&1 check -# check show (mhl) -cat > $expected < $actual 2>&1 -check - -# check mhshow +# check show cat > $expected < $actual 2>&1 +show $msgnum > $actual 2>&1 check + +exit $failed