diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-02-14 21:16:20 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-02-14 21:17:38 +0100 |
commit | c777cd81ef3b9eeb3d067efe9f3bee1949328803 (patch) | |
tree | 3d7edde4db5f75a5cc846ce622676dbff7eb54c2 /t/t1404-update-ref-errors.sh | |
parent | Git 2.15 (diff) | |
download | git-c777cd81ef3b9eeb3d067efe9f3bee1949328803.tar.xz git-c777cd81ef3b9eeb3d067efe9f3bee1949328803.zip |
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: Randall S. Becker <rsbecker@nexbridge.com>
Helped-by: Duy Nguyen <pclouds@gmail.com>
Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rwxr-xr-x | t/t1404-update-ref-errors.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t1404-update-ref-errors.sh b/t/t1404-update-ref-errors.sh index 3a887b5113..482d24fa09 100755 --- a/t/t1404-update-ref-errors.sh +++ b/t/t1404-update-ref-errors.sh @@ -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 ' |