summaryrefslogtreecommitdiff
path: root/t/t9001-send-email.sh
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2013-06-05 21:11:08 +0300
committerJunio C Hamano <gitster@pobox.com>2013-06-05 12:27:01 -0700
commit14952666d18e5256e1796633e5a927891e77a8de (patch)
tree4b1ccd9bd8e22267ca586710cf10bb096e65c747 /t/t9001-send-email.sh
parent4b45bcf7b141baf49c7290925b4fa5a40e47b610 (diff)
downloadgit-14952666d18e5256e1796633e5a927891e77a8de.tar.gz
test-send-email: test for pre-sanitized self name
Users can sanitize from address manually. Verify that these are suppressed properly. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9001-send-email.sh')
-rwxr-xr-xt/t9001-send-email.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh
index e4b3514d73..ebcb60a050 100755
--- a/t/t9001-send-email.sh
+++ b/t/t9001-send-email.sh
@@ -241,6 +241,11 @@ test_expect_success $PREREQ 'non-ascii self name is suppressed' "
'non_ascii_self_suppressed'
"
+test_expect_success $PREREQ 'sanitized self name is suppressed' "
+ test_suppress_self_unquoted '\"A U. Thor\"' 'author@example.com' \
+ 'self_name_sanitized_suppressed'
+"
+
test_expect_success $PREREQ 'Show all headers' '
git send-email \
--dry-run \