X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/3af3288f3acdfe29d3c17aefd9e0453ac3204541..148ff0430d968df2e9f1ce3a1dcee12a4dcdaf9f:/test/scan/test-scan?ds=inline diff --git a/test/scan/test-scan b/test/scan/test-scan index 7fd4b7bb..1e600ec4 100755 --- a/test/scan/test-scan +++ b/test/scan/test-scan @@ -30,7 +30,7 @@ cat >"$expected" <> EOF -scan +inbox -width 80 >"$actual" || exit 1 +run_prog scan +inbox -width 80 >"$actual" || exit 1 check "$expected" "$actual" # check highlighting @@ -50,26 +50,7 @@ EOF printf 'Unseen-Sequence: unseen\n' >> $MH mark -sequence cur 5 mark -sequence unseen 10 -scan -form scan.highlighted -width 80 >"$actual" || exit 1 -check "$expected" "$actual" - -# check decoding with an invalid multibyte sequence. -cat >"$expected" <`mhpath new` < -To: Some User -Date: Mon, 31 Dec 2012 00:00:00 -Message-Id: 11@test.nmh -Subject: =?UTF-8?B?MjAxMyBOZXcgWWVhcuKAmXMgRGVhbHMhIFN0YXJ0IHRoZSB5ZWFy?= - =?UTF-8?B?IHJpZ2h0IHdpdGggYmlnIHNhdmluZ3M=?= - -This message has an encoded Subject with an invalid character for the -ISO-8859-1 character set. -EOF -LC_CTYPE=ISO-8859-1 MM_CHARSET=ISO-8859-1 scan -width 75 last >"$actual" +run_prog scan -form scan.highlighted -width 80 >"$actual" || exit 1 check "$expected" "$actual"