]> diplodocus.org Git - nmh/blobdiff - test/mhshow/test-cte-binary
Here's an even simpler fix to enable TLS by default.
[nmh] / test / mhshow / test-cte-binary
index e2d39f87d35a4d1b171efee22c38085b74e70417..fdf1ca78442160aabd78ea801e49f3d2b8b3f3fa 100755 (executable)
@@ -17,8 +17,8 @@ expected=$MH_TEST_DIR/$$.expected
 actual=$MH_TEST_DIR/$$.actual
 
 # Write message with Content-Transfer-Encoding: binary text.
-msgfile=$(mhpath new)
-msgnum=$(basename $msgfile)
+msgfile=`mhpath new`
+msgnum=`basename $msgfile`
 cat > $msgfile <<EOF
 Content-Transfer-Encoding: binary
 To: bar@example.edu
@@ -43,8 +43,11 @@ Subject: test
 MIME-Version: 1.0
 Content-Disposition: inline
 
-part       text/plain                  34
+[ part  - text/plain -   34B  ]
 This is a test; this is the body.
 EOF
-mhshow -nopause $msgnum > $actual 2>&1
-diff -u $expected $actual
+run_prog mhshow $msgnum > $actual 2>&1
+check "$expected" "$actual"
+
+exit $failed
+