X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/e996186ed31572ee94c32abf6083f57d69777888..e6ddebc23e12a646efed6ef7f1e785497beb0bc2:/test/mhfixmsg/test-mhfixmsg?ds=sidebyside diff --git a/test/mhfixmsg/test-mhfixmsg b/test/mhfixmsg/test-mhfixmsg index 5b039ea1..d60b9d76 100755 --- a/test/mhfixmsg/test-mhfixmsg +++ b/test/mhfixmsg/test-mhfixmsg @@ -567,7 +567,7 @@ MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0" ------- =_aaaaaaaaaa0 -Content-Type: text/plain; charset="iso-8859-1"; name="square.txt" +Content-Type: text/plain; charset="iso-8859-1"; name="nul+square.txt" Content-Transfer-Encoding: base64 AL2yPbwK @@ -588,7 +588,7 @@ MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=\"----- =_aaaaaaaaaa0\" ------- =_aaaaaaaaaa0 -Content-Type: text/plain; charset=\"iso-8859-1\"; name=\"square.txt\" +Content-Type: text/plain; charset=\"iso-8859-1\"; name=\"nul+square.txt\" Content-Transfer-Encoding: binary " " @@ -713,17 +713,13 @@ vbI9vAo= ------- =_aaaaaaaaaa0-- EOF -set +e -run_prog mhfixmsg last -textcharset utf-8 -outfile "$actual" 2>"$actual.err" -if grep "mhfixmsg: Can't convert .* to .* without iconv" "$actual.err" \ - >/dev/null; then - echo "$0: skipping -textcharset check because nmh was built without iconv" - rm -f "$expected" "$actual" "$actual.err" -else +if test "$ICONV_ENABLED" -eq 1; then + run_prog mhfixmsg last -textcharset utf-8 -outfile "$actual" 2>&1 check "$expected" "$actual" - rm "$actual.err" +else + echo "$0: skipping -textcharset check because nmh was built without iconv" + rm -f "$expected" fi -set -e # check -nofixboundary @@ -774,7 +770,7 @@ fi cat >"$expected" <