You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
522 B
21 lines
522 B
8 years ago
|
#!/bin/sh
|
||
|
|
||
|
test_description='corner cases in ident strings'
|
||
|
. ./test-lib.sh
|
||
|
|
||
|
# confirm that we do not segfault _and_ that we do not say "(null)", as
|
||
|
# glibc systems will quietly handle our NULL pointer
|
||
|
#
|
||
|
# Note also that we can't use "env" here because we need to unset a variable,
|
||
|
# and "-u" is not portable.
|
||
|
test_expect_success 'empty name and missing email' '
|
||
|
(
|
||
|
sane_unset GIT_AUTHOR_EMAIL &&
|
||
|
GIT_AUTHOR_NAME= &&
|
||
|
test_must_fail git commit --allow-empty -m foo 2>err &&
|
||
|
test_i18ngrep ! null err
|
||
|
)
|
||
|
'
|
||
|
|
||
|
test_done
|