]> diplodocus.org Git - nmh/blobdiff - test/bad-input/test-header
Added support for m_getfld() callers interleaving fseek() calls
[nmh] / test / bad-input / test-header
index b45a576..9f78b37 100755 (executable)
@@ -18,8 +18,8 @@ expected=$MH_TEST_DIR/$$.expected
 actual=$MH_TEST_DIR/$$.actual
 
 # Write message with bogus header field (missing blank line, really).
-msgfile=$(mhpath new)
-msgnum=$(basename $msgfile)
+msgfile=`mhpath new`
+msgnum=`basename $msgfile`
 cat > $msgfile <<EOF
 Date: Sun, 18 Dec 2005 00:52:39 +0100
 From: foo@example.edu
@@ -34,7 +34,7 @@ EOF
 cat > $expected <<EOF
   11  12/18 foo@example.edu    test<<This is a multi-part message in MIME forma
 EOF
-scan $msgnum > $actual 2>&1
+scan -width 80 $msgnum > $actual 2>&1
 check $expected $actual
 
 # check show (mhl)
@@ -49,7 +49,6 @@ Subject: test
 
 This is a multi-part message in MIME format.
 
-
 I am a stupid spammer.
 EOF
 show $msgnum > $actual 2>&1