]> diplodocus.org Git - nmh/commitdiff
Added test case for commit 4318012376e06229307c0ed4f62a00faae9edc63.
authorDavid Levine <levinedl@acm.org>
Sat, 18 Mar 2017 20:53:15 +0000 (16:53 -0400)
committerDavid Levine <levinedl@acm.org>
Sat, 18 Mar 2017 20:53:15 +0000 (16:53 -0400)
test/mhfixmsg/test-mhfixmsg

index 7fc95d3f1460062acdd15676b5f1ceacfbba467e..3f5e847e29d703b0587fc1723f4788f7b9eae5f0 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 "$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"
 # 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"