summaryrefslogtreecommitdiffstats
path: root/t/t9001-send-email.sh
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2013-06-05 20:11:08 +0200
committerJunio C Hamano <gitster@pobox.com>2013-06-05 21:27:01 +0200
commit14952666d18e5256e1796633e5a927891e77a8de (patch)
tree4b1ccd9bd8e22267ca586710cf10bb096e65c747 /t/t9001-send-email.sh
parentt/send-email: test suppress-cc=self with non-ascii (diff)
downloadgit-14952666d18e5256e1796633e5a927891e77a8de.tar.xz
git-14952666d18e5256e1796633e5a927891e77a8de.zip
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 \