Subject: | 05_CPANPLUS-Internals-Fetch.t fails on Cygwin |
Hello Jos,
I told you a few weeks ago about a failure in 05_CPANPLUS-Internals-Fetch.t on Cygwin. I wasn't able to reproduce it at that time but I see it again today.
$ perl -wMblib t/05_CPANPLUS-Internals-Fetch.t 1
ok 1 - The object isa CPANPLUS::Internals
[MSG] Checking if source files are up to date
[MSG] Retrieving /cygdrive/c/Documents and Settings/sat/CPANPLUS-0.056
2/t/dummy-cpanplus/sourcefiles.2.13.stored
ok 2 - The object isa CPANPLUS::Module
ok 3 - Failed host added
ok 4 - Host registered as failed
ok 5 - Fresh host unregistered
[MSG] Trying to get 'file://cygdrive/c/Documents and Settings/sat/CPAN
PLUS-0.0562/t/dummy-CPAN/authors/id/A/AY/AYRNIEU/Text-Bastardize-0.06.
tar.gz'
ok 6 - File downloaded to '/cygdrive/c/Documents and Settings/sat/CPAN
PLUS-0.0562/t/dummy-cpanplus/authors/id/A/AY/AYRNIEU/Text-Bastardize-0
.06.tar.gz'
ok 7 - File exists
ok 8 - File removed
[ERROR] Fetching of 'file://cygdrive/c/Documents and Settings/sat/CPAN
PLUS-0.0562/t/t/05_CPANPLUS-Internals-Fetch.t/t/05_CPANPLUS-Internals-
Fetch.t/authors/id/A/AY/AYRNIEU/Text-Bastardize-0.06.tar.gz' failed: C
ould not copy '/cygdrive/c/Documents and Settings/sat/CPANPLUS-0.0562/
t/t/05_CPANPLUS-Internals-Fetch.t/t/05_CPANPLUS-Internals-Fetch.t/auth
ors/id/A/AY/AYRNIEU/Text-Bastardize-0.06.tar.gz' to 'dummy-cpanplus/au
thors/id/A/AY/AYRNIEU/Text-Bastardize-0.06.tar.gz': No such file or di
rectory
ok 9 - File downloaded to '/cygdrive/c/Documents and Settings/sat/CPAN
PLUS-0.0562/t/dummy-cpanplus/authors/id/A/AY/AYRNIEU/Text-Bastardize-0
.06.tar.gz'
ok 10 - File exists
ok 11 - Error recorded appropriately
ok 12 - Failed host logged properly
ok 13 - Fake module created from t/05_CPANPLUS-Internals-Fetch.t
ok 14 - Fetch from set ok
[MSG] Trying to get 'file:///cygdrive/c/Documents and Settings/sat/CPA
NPLUS-0.0562/t/05_CPANPLUS-Internals-Fetch.t'
Could not copy '//cygdrive/c/Documents and Settings/sat/CPANPLUS-0.056
2/t/05_CPANPLUS-Internals-Fetch.t' to 'dummy-cpanplus/authors/id/UNKNO
WN-ORIGIN/05_CPANPLUS-Internals-Fetch.t': No such host or network path
at /cygdrive/c/Documents and Settings/sat/CPANPLUS-0.0562/t/../lib/C
PANPLUS/Module.pm line 441
[ERROR] Fetching of 'file:///cygdrive/c/Documents and Settings/sat/CPA
NPLUS-0.0562/t/05_CPANPLUS-Internals-Fetch.t' failed: Could not copy '
//cygdrive/c/Documents and Settings/sat/CPANPLUS-0.0562/t/05_CPANPLUS-
Internals-Fetch.t' to 'dummy-cpanplus/authors/id/UNKNOWN-ORIGIN/05_CPA
NPLUS-Internals-Fetch.t': No such host or network path
[ERROR] Unable to download 'file:///cygdrive/c/Documents and Settings/
sat/CPANPLUS-0.0562/t/05_CPANPLUS-Internals-Fetch.t'
not ok 15 - file:///cygdrive/c/Documents and Settings/sat/CPANPLUS-
0.0562/t/05_CPANPLUS-Internals-Fetch.t fetched ok
# Failed test (t/05_CPANPLUS-Internals-Fetch.t at line 102)
Use of uninitialized value in -s at t/05_CPANPLUS-Internals-Fetch.t li
ne 103.
Use of uninitialized value in concatenation (.) or string at t/05_CPAN
PLUS-Internals-Fetch.t line 103.
not ok 16 - exists
# Failed test (t/05_CPANPLUS-Internals-Fetch.t at line 103)
not ok 17 - Saved to proper location
# Failed test (t/05_CPANPLUS-Internals-Fetch.t at line 104)
# undef
# doesn't match '/UNKNOWN-ORIGIN/'
not ok 18 - Saved with proper name
# Failed test (t/05_CPANPLUS-Internals-Fetch.t at line 106)
# undef
# doesn't match '(?-xism:05_CPANPLUS-Internals-Fetch.t$)'
1..18
# Looks like you failed 4 tests of 18.
[MSG] Writing state information back to disk. This may take a little while.
As I told you, I think it's more an error in the test script itself than in CPANPLUS because CPANLPUS itself works well.
This is on a fresh Cygwin install:
This is perl, v5.8.7 built for cygwin-thread-multi-64int
File::Spec 3.05 (upgrading to 3.11 doesn't help)
ExtUtils::MakeMaker 6.17 (upgrading to 6.30 doesn't help)
Regards