add a test for git-send-email for non-threaded mails
authorMarkus Heidelberg <markus.heidelberg@web.de>
Fri, 12 Jun 2009 10:51:37 +0000 (12:51 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Jun 2009 16:20:18 +0000 (09:20 -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 ce26ea4ac53a4608f6f8234b67868a9cc85be7f8..5bfa36eccfaac1bb47cd3b581ced8c8007687310 100755 (executable)
@@ -621,4 +621,14 @@ test_expect_success 'in-reply-to but no threading' '
        grep "In-Reply-To: <in-reply-id@example.com>"
 '
 
+test_expect_failure 'no in-reply-to and no threading' '
+       git send-email \
+               --dry-run \
+               --from="Example <nobody@example.com>" \
+               --to=nobody@example.com \
+               --nothread \
+               $patches $patches >stdout &&
+       ! grep "In-Reply-To: " stdout
+'
+
 test_done