]> diplodocus.org Git - nmh/blobdiff - test/mhfixmsg/test-mhfixmsg
path.c: Remove path()'s test for expath() returning NULL.
[nmh] / test / mhfixmsg / test-mhfixmsg
index 7fc95d3f1460062acdd15676b5f1ceacfbba467e..f741d9c6823f2a276f145e9087340b3570fb87ea 100755 (executable)
@@ -199,6 +199,12 @@ check "$MH_TEST_DIR"/Mail/inbox/11 "$expected" 'keep first'
 check "$MH_TEST_DIR"/Mail/inbox/,11 "$MH_TEST_DIR"/Mail/inbox/11.original
 
 
+# check -file with directory
+start_test "-file with directory"
+run_test 'mhfixmsg -file /tmp' 'mhfixmsg: /tmp is a directory
+mhfixmsg: unable to parse message from file /tmp'
+
+
 # check -reformat (enabled by default):  addition of text/plain part
 # to solitary text/html part
 start_test "-reformat (enabled by default):  addition of text/plain part"
@@ -1677,7 +1683,7 @@ check "$expected" "$actual"
 start_test "input is passed through to output when there's a parse error"
 cat >"$expected.err" <<EOF
 mhfixmsg: invalid quoted-string in message 31's Content-Type: field
-          (parameter charset)
+    (parameter charset)
 mhfixmsg: unable to parse message 31
 EOF