]> diplodocus.org Git - nmh/blobdiff - test/mhfixmsg/test-mhfixmsg
Plug memory leak with parameter continuations.
[nmh] / test / mhfixmsg / test-mhfixmsg
index f3a112366f6b0a5b25546d641e961ca56ba8b371..5f33b79b917b8975e464236c6ce8d6ecae7da4ee 100755 (executable)
@@ -1714,6 +1714,17 @@ set +e
 run_prog mhfixmsg -file - -outfile - <`mhpath last` >"$actual" 2>/dev/null
 set -e
 #### Expected output is identical to the input message.
 run_prog mhfixmsg -file - -outfile - <`mhpath last` >"$actual" 2>/dev/null
 set -e
 #### Expected output is identical to the input message.
+check `mhpath last` "$actual" 'keep first'
+
+
+start_test "pass through message with relative folder path with parse error"
+#### Factor out leading portion of current folder path and make it relative.
+pwd=`pwd`
+set +e
+run_prog mhfixmsg +./`mhpath | sed "s%^$pwd/%%"` last -out - >"$actual" 2>/dev/null
+set -e
+folder -f +inbox >/dev/null
+#### Expected output is identical to the input message.
 check `mhpath last` "$actual"
 
 
 check `mhpath last` "$actual"