Subject: | t/backends.t fails (with newer git?) |
On some of my systems I see the following errors in t/backends.t:
# Available backends:
# - None
# - Git::Sub
# - Git::Wrapper
# git version 2.11.0
error: Kurzer SHA-1 577ecc ist mehrdeutig.
Hinweis: Die Kandidaten sind:
Hinweis: 577ecc2 blob
Hinweis: 577ecca blob
Use of uninitialized value $size in substr at /home/cpansand/.cpan/build/2017011918/Git-Database-0.006-GRIkzC/blib/lib/Git/Database/Backend/Git/Sub.pm line 72.
# Child (Git::Sub & ambiguous) exited without calling finalize()
# Failed test 'Git::Sub & ambiguous'
# at /usr/perl5.20.1Dp/lib/site_perl/5.20.1/Test/Builder.pm line 279.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 255 just after 32.
t/backends.t .............
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 1/32 subtests
(less 3 skipped subtests: 28 okay)
And it also fails with an English locale:
# Available backends:
# - None
# - Git::Sub
# - Git::Wrapper
# git version 2.11.0
error: short SHA1 577ecc is ambiguous
hint: The candidates are:
hint: 577ecc2 blob
hint: 577ecca blob
Use of uninitialized value $size in substr at /home/cpansand/.cpan/build/2017011918/Git-Database-0.006-0/blib/lib/Git/Database/Backend/Git/Sub.pm line 72.
Can't locate object method "new" via package "Git::Database::Object::6" (perhaps you forgot to load "Git::Database::Object::6"?) at /home/cpansand/.cpan/build/2017011918/Git-Database-0.006-0/blib/lib/Git/Database/Role/ObjectReader.pm line 33.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 255 just after 32.
t/backends.t .............
Dubious, test returned 255 (wstat 65280, 0xff00)
All 32 subtests passed
(less 3 skipped subtests: 29 okay)
I can reproduce the problem only on a freebsd 10.3 system which has git 2.11.0 installed. 2.10.2 and earlier seem to be OK.