Skip to content
Snippets Groups Projects
Commit c777cd81 authored by Junio C Hamano's avatar Junio C Hamano
Browse files

t1404: do not rely on the exact phrasing of strerror()


Not even in C locale, it is wrong to expect that the exact phrasing
"File exists" is used to show EEXIST.

Reported-by: default avatarRandall S. Becker <rsbecker@nexbridge.com>
Helped-by: default avatarDuy Nguyen <pclouds@gmail.com>
Helped-by: default avatarJeff King <peff@peff.net>
Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
parent cb5918aa
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -614,7 +614,7 @@ test_expect_success 'delete fails cleanly if packed-refs file is locked' '
test_when_finished "rm -f .git/packed-refs.lock" &&
test_must_fail git update-ref -d $prefix/foo >out 2>err &&
git for-each-ref $prefix >actual &&
test_i18ngrep "Unable to create $Q.*packed-refs.lock$Q: File exists" err &&
test_i18ngrep "Unable to create $Q.*packed-refs.lock$Q: " err &&
test_cmp unchanged actual
'
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment