Skip to content

Commit

Permalink
test-send-email: test for pre-sanitized self name
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael S. Tsirkin authored and Junio C Hamano committed Jun 5, 2013
1 parent 4b45bcf commit 1495266
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions t/t9001-send-email.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 1495266

Please sign in to comment.