add a test for git-send-email for threaded mails without chain-reply-to
authorMarkus Heidelberg <markus.heidelberg@web.de>
Fri, 12 Jun 2009 10:51:40 +0000 (12:51 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Jun 2009 16:22:14 +0000 (09:22 -0700)
Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9001-send-email.sh

index 2ce24cd5a613a2f218f8a486a4ad4c15db29e695..4f67de3ac7f882836444ea46ba938341c7be22cf 100755 (executable)
@@ -621,4 +621,15 @@ test_expect_success 'in-reply-to but no threading' '
        grep "In-Reply-To: <in-reply-id@example.com>"
 '
 
+test_expect_failure 'threading but no chain-reply-to' '
+       git send-email \
+               --dry-run \
+               --from="Example <nobody@example.com>" \
+               --to=nobody@example.com \
+               --thread \
+               --nochain-reply-to \
+               $patches $patches >stdout &&
+       grep "In-Reply-To: " stdout
+'
+
 test_done