]> diplodocus.org Git - nmh/blobdiff - test/mhfixmsg/test-mhfixmsg
mhbuild's fgetstr(): simplify source, logic untouched.
[nmh] / test / mhfixmsg / test-mhfixmsg
index fdc6ece3a38d4a1af26982b07f67c523998524b6..a95ef3f2d21686c9d32503e604a5012f11ec949e 100755 (executable)
@@ -16,7 +16,7 @@ fi
 
 setup_test
 
 
 setup_test
 
-mhfixmsg - >/dev/null 2>&1 || true  # gcov
+check_exit '-eq 1' mhfixmsg - # gcov
 
 #### Make sure that html-to-text conversion is what we expect.
 require_locale en_US.UTF-8 en_US.UTF8 en_US.utf-8 en_US.utf8
 
 #### Make sure that html-to-text conversion is what we expect.
 require_locale en_US.UTF-8 en_US.UTF8 en_US.utf-8 en_US.utf8
@@ -1072,6 +1072,7 @@ fi
 
 
 # check handling of rfc822 message type
 
 
 # check handling of rfc822 message type
+# also, checks -fixboundary
 start_test "handling of rfc822 message type"
 cat >"$expected" <<EOF
 From: Test <test@example.com>
 start_test "handling of rfc822 message type"
 cat >"$expected" <<EOF
 From: Test <test@example.com>
@@ -1109,7 +1110,7 @@ Date: Fri, 29 Sep 2006 00:00:00
 Message-Id: @test.nmh
 Subject: message with message/rfc822 attachment
 MIME-Version: 1.0
 Message-Id: @test.nmh
 Subject: message with message/rfc822 attachment
 MIME-Version: 1.0
-Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaa0"
+Content-Type: multipart/mixed; boundary="----- =badboundary"
 
 and some garbage before the attachment
 
 
 and some garbage before the attachment