Skip to content

Commit c777cd8

Browse files
committed
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 <[email protected]> Helped-by: Duy Nguyen <[email protected]> Helped-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent cb5918a commit c777cd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t1404-update-ref-errors.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ test_expect_success 'delete fails cleanly if packed-refs file is locked' '
614614
test_when_finished "rm -f .git/packed-refs.lock" &&
615615
test_must_fail git update-ref -d $prefix/foo >out 2>err &&
616616
git for-each-ref $prefix >actual &&
617-
test_i18ngrep "Unable to create $Q.*packed-refs.lock$Q: File exists" err &&
617+
test_i18ngrep "Unable to create $Q.*packed-refs.lock$Q: " err &&
618618
test_cmp unchanged actual
619619
'
620620

0 commit comments

Comments
 (0)