From: Ken Hornstein Date: Fri, 1 Feb 2013 19:06:49 +0000 (-0500) Subject: Make sure we created the test file even if we don't have iconv support; X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/d7d9ff56fcd4d803799657a5b46d0022e9837e1d?ds=inline Make sure we created the test file even if we don't have iconv support; it's needed for two tests. --- diff --git a/test/scan/test-scan-multibyte b/test/scan/test-scan-multibyte index 819c34c0..2650d124 100755 --- a/test/scan/test-scan-multibyte +++ b/test/scan/test-scan-multibyte @@ -75,11 +75,11 @@ check "$expected" "$actual" # # Check decoding with an invalid multibyte sequence. We skip this test # if we don't have iconv support, since it requires converting from one -# character set to another +# character set to another. Be sure we created the test file, though, because +# it's required for the test right after it. # -if test "$ICONV_ENABLED" -eq 1; then - cat >`mhpath new` <`mhpath new` < To: Some User Date: Mon, 31 Dec 2012 00:00:00 @@ -91,10 +91,11 @@ This message has an encoded Subject with an invalid character for the ISO-8859-1 character set, but it (U+2019) is valid UTF-8. EOF - cat >"$expected" <"$expected" <"$actual" check "$expected" "$actual" fi