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>

Junio C Hamano committed Feb 14, 2019 at 12:16 UTC c777cd81ef3b9eeb3d067efe9f3bee1949328803
1 file changed +1 -1
t/t1404-update-ref-errors.sh
+1 -1
@@ -614,7 +614,7 @@ test_expect_success 'delete fails cleanly if packed-refs file is locked' '
614 test_when_finished "rm -f .git/packed-refs.lock" &&
615 test_must_fail git update-ref -d $prefix/foo >out 2>err &&
616 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 &&
618 test_cmp unchanged actual
619 '
620