]> diplodocus.org Git - nmh/blobdiff - test/mhshow/test-msg-buffer-boundaries
Another pass at cleaning up (some of) the manpages.
[nmh] / test / mhshow / test-msg-buffer-boundaries
index 23b49348925abf86c6b51be2b1940ed548a7a887..ca1e7cd62e43d87644752c54beffc2d6ddad42ec 100755 (executable)
@@ -153,12 +153,13 @@ EOF
 
 # Write the expected output.
 cat >"$expected" <<EOF
-part 1.1   text/plain                  29
+[ Message inbox:$msgnum ]
+[ part 1.1 - text/plain -   29B  ]
 This is the text/plain part.
 EOF
 
-mhshow -part 1.1 -form mhl.null -nopause $msgnum >"$actual" 2>&1
-check "$expected" "$actual"
+run_prog mhshow -part 1.1 -form mhl.null $msgnum >"$actual" 2>&1
+check "$expected" "$actual" : check number 1
 
 # check a boundary condition in m_getfld():  its internal message
 # buffer holds exactly up to the end of a header field name in a
@@ -293,12 +294,13 @@ EOF
 
 # Write the expected output.
 cat >"$expected" <<EOF
-part 1.1   text/plain                  29
+[ Message inbox:$msgnum ]
+[ part 1.1 - text/plain -   29B  ]
 This is the text/plain part.
 EOF
 
-mhshow -part 1.1 -form mhl.null -nopause $msgnum >"$actual" 2>&1
-check "$expected" "$actual"
+run_prog mhshow -part 1.1 -form mhl.null $msgnum >"$actual" 2>&1
+check "$expected" "$actual" : check number 2
 
 # check a boundary condition in m_getfld():  its internal message
 # buffer holds exactly up to the end of a message part boundary
@@ -416,12 +418,14 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-The 8192nd character is the '2' at the end of the following NextPart_002.
+XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+
+The 8192'nd character is the '2' at the end of the following NextPart_002.
 
 --NextPart_002
 Content-Type: text/plain;
     charset="utf-8"
+Content-Description: the text/plain part
 
 This is the text/plain part.
 
@@ -432,12 +436,13 @@ EOF
 
 # Write the expected output.
 cat >"$expected" <<EOF
-part 1.1   text/plain                  29
+[ Message inbox:$msgnum ]
+[ part 1.1 - text/plain - the text/plain part  29B  ]
 This is the text/plain part.
 EOF
 
-mhshow -part 1.1 -form mhl.null -nopause $msgnum >"$actual" 2>&1
-check "$expected" "$actual"
+run_prog mhshow -part 1.1 -form mhl.null $msgnum >"$actual" 2>&1
+check "$expected" "$actual" : check number 3
 
 
 exit $failed