X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/60052b95778a065760a437859ee9b8a1cc4e39a9..1d5e6d0340ba258b34b85ccdac4c402ccf4fd51e:/test/mhshow/test-charset?ds=sidebyside diff --git a/test/mhshow/test-charset b/test/mhshow/test-charset index 6c7095ff..0b381e11 100755 --- a/test/mhshow/test-charset +++ b/test/mhshow/test-charset @@ -29,7 +29,7 @@ else #### FreeBSD10 buildbot. It doesn't support EBCDIC-US, which is used #### by the checks, so check for that. Though that doesn't seem to be #### the reason. - printf '\xe4' | iconv -f EBCDIC-US -t UTF-8 >/dev/null 2>&1 && + printf '\xe4' | iconv -f EBCDIC-US -t UTF-8 >/dev/null 2>&1 || skip_param_value_checks=1 fi @@ -82,6 +82,12 @@ run_prog mhshow $msgnum > $actual 2>&1 check "$expected" "$actual" : locale profile component +if test $skip_param_value_checks -eq 1; then + finish_test + exit $failed +fi + + start_test 'Encoded parameter value' msgfile=`mhpath new` msgnum=`basename $msgfile` @@ -115,10 +121,8 @@ Content-Description: bogus quoted-printable data 4 ÷ 2 = 2 EOF -if test $skip_param_value_checks -eq 0; then - run_prog mhshow $msgnum > $actual 2>&1 - check "$expected" "$actual" : encoded parameter value -fi +run_prog mhshow $msgnum > $actual 2>&1 +check "$expected" "$actual" : encoded parameter value start_test 'replacement character in parameter value' @@ -139,10 +143,8 @@ MIME-Version: 1.0 [ part - text/plain - 0B ] EOF -if test $skip_param_value_checks -eq 0; then - run_prog mhshow $msgnum > $actual 2>&1 - check "$expected" "$actual" -fi +run_prog mhshow $msgnum > $actual 2>&1 +check "$expected" "$actual" finish_test