X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/dbd0fa0a56a222bd118fea627eba53e5d9811d01..4d5d51e903a42c23800540930244448c4aacae16:/test/mhshow/test-msg-buffer-boundaries diff --git a/test/mhshow/test-msg-buffer-boundaries b/test/mhshow/test-msg-buffer-boundaries index 23b49348..fcd83dad 100755 --- a/test/mhshow/test-msg-buffer-boundaries +++ b/test/mhshow/test-msg-buffer-boundaries @@ -21,6 +21,7 @@ expected="$MH_TEST_DIR/$$.expected" actual="$MH_TEST_DIR/$$.actual" # check a boundary condition in m_getfld(): its internal message +start_test "a boundary condition in m_getfld(): its internal message" # buffer holds exactly up to the end of a header field body in a # message part msgfile=`mhpath new` @@ -153,14 +154,16 @@ EOF # Write the expected output. cat >"$expected" <"$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 +start_test "a boundary condition in m_getfld(): its internal message" # buffer holds exactly up to the end of a header field name in a # message part msgfile=`mhpath new` @@ -293,14 +296,16 @@ EOF # Write the expected output. cat >"$expected" <"$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 +start_test "a boundary condition in m_getfld(): its internal message" # buffer holds exactly up to the end of a message part boundary msgfile=`mhpath new` msgnum=`basename $msgfile` @@ -416,12 +421,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 +439,14 @@ EOF # Write the expected output. cat >"$expected" <"$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 +finish_test exit $failed