diff options
author | Carl Worth <cworth@cworth.org> | 2011-05-24 10:56:38 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2011-05-24 12:19:18 -0700 |
commit | e267f9a46731e796f7064c7483de9942caba3c2a (patch) | |
tree | 1a19b1498977de73ed4faa15f66511e22aabe31a /test/multipart | |
parent | b825bce61d24963f5b9c9c94d89e306640ac104b (diff) |
test: Expand multipart test to cover "notmuch reply" as well
This gives coverage for the segmentation fault in "notmuch reply" that
was just fixed with the previous commit.
Diffstat (limited to 'test/multipart')
-rwxr-xr-x | test/multipart | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/multipart b/test/multipart index 42cbb765..80da0b45 100755 --- a/test/multipart +++ b/test/multipart @@ -305,4 +305,24 @@ test_expect_success \ "--format=mbox --part=1, incompatible, expect error" \ "! notmuch show --format=mbox --part=1 'id:87liy5ap00.fsf@yoom.home.cworth.org'" +test_begin_subtest "'notmuch reply' to a multipart message" +output=$(notmuch reply 'id:87liy5ap00.fsf@yoom.home.cworth.org') +test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org> +Subject: Re: Multipart message +To: Carl Worth <cworth@cworth.org>, cworth@cworth.org +In-Reply-To: <87liy5ap00.fsf@yoom.home.cworth.org> +References: <87liy5ap00.fsf@yoom.home.cworth.org> + +On Tue, 05 Jan 2001 15:43:57 -0000, Carl Worth <cworth@cworth.org> wrote: +Non-text part: multipart/signed +Non-text part: multipart/mixed +Non-text part: message/rfc822 +Non-text part: text/html +> This is a text attachment. +> And this message is signed. +> +> -Carl +Non-text part: application/pgp-signature" + + test_done |