]> diplodocus.org Git - nmh/blobdiff - test/mhshow/test-cte-binary
Added check to get_file_info() in attach.c for failed fgets() call.
[nmh] / test / mhshow / test-cte-binary
index e2d39f8..9c31a65 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
@@ -46,5 +46,8 @@ Content-Disposition: inline
 part       text/plain                  34
 This is a test; this is the body.
 EOF
-mhshow -nopause $msgnum > $actual 2>&1
-diff -u $expected $actual
+run_prog mhshow -nopause $msgnum > $actual 2>&1
+check "$expected" "$actual"
+
+exit $failed
+