From: David Levine Date: Sun, 20 Jan 2013 13:49:58 +0000 (-0600) Subject: Updated test-inc-scanout on master to match version of X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/1319e52da7ad05adfba1f302781ead6106316be9?hp=--cc Updated test-inc-scanout on master to match version of m_getfld branch. --- 1319e52da7ad05adfba1f302781ead6106316be9 diff --git a/test/inc/test-inc-scanout b/test/inc/test-inc-scanout index b66965a0..68a53420 100755 --- a/test/inc/test-inc-scanout +++ b/test/inc/test-inc-scanout @@ -15,6 +15,10 @@ fi setup_test +thisdir="$srcdir/test/inc" +expected="$MH_TEST_DIR/$$.expected" +actual="$MH_TEST_DIR/$$.actual" + cat > "${MH_TEST_DIR}/test.mbox" <"$MH_TEST_DIR/mess" < +To: Some Other User +Subject: all that and nothing to say? +Date: Thu, 10 Jan 2013 19:54:01 -0500 + +EOF + +run_test 'scan -width 60 -file '"$MH_TEST_DIR/mess" \ + ' 1 01/10 No Such User all that and nothing to say?' +rm -f "$MH_TEST_DIR/mess" + +# check m_getfld() handling of fields with trailing whitespace +# Even though header field names aren't supposed to have spaces (RFC +# 28220, m_getfld () trims trailing whitespace from them. +cat >`mhpath new` <"$MH_TEST_DIR/mess" < +To: Some Other User +Subject: FLDPLUS test +Date: Wed, 16 Jan 2013 20:33:58 -0600 + +EOF + +run_test 'scan -width 80 -file '"$MH_TEST_DIR"'/mess' \ + ' 1 01/16 No Such User FLDPLUS test' +rm -f "$MH_TEST_DIR/mess" + + exit ${failed:-0}