Subject: | failing tests in Windows (Cygwin) |
Hello, two test files fail in WinXP, with Perl 5.14.2 installed on
Cygwin 1.7.17. Here is the TAP output:
$ cpan Test::File
CPAN: Storable loaded ok (v2.27)
Going to read '/cygdrive/c/Dropbox/.cpan/Metadata'
Database was generated on Sun, 16 Dec 2012 14:07:04 GMT
Running install for module 'Test::File'
Running make for B/BA/BAREFOOT/Test-File-1.34.tar.gz
CPAN: Digest::SHA loaded ok (v5.71)
CPAN: Compress::Zlib loaded ok (v2.033)
Checksum for
/cygdrive/c/Dropbox/.cpan/sources/authors/id/B/BA/BAREFOOT/Test-File-
1.34.tar.gz ok
CPAN: File::Temp loaded ok (v0.22)
CPAN: Parse::CPAN::Meta loaded ok (v1.4401)
CPAN: CPAN::Meta loaded ok (v2.112150)
CPAN: Module::CoreList loaded ok (v2.49_02)
CPAN.pm: Going to build B/BA/BAREFOOT/Test-File-1.34.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for Test::File
Writing MYMETA.yml and MYMETA.json
cp lib/File.pm blib/lib/Test/File.pm
Manifying blib/man3/Test::File.3pm
BAREFOOT/Test-File-1.34.tar.gz
/usr/bin/make -- OK
CPAN: YAML loaded ok (v0.84)
Running make test
/usr/bin/perl.exe "-MTest::Manifest" "-e" "run_t_manifest(0, 'blib/lib',
'blib/arch', )"
t/load.t ...................... ok
t/pod.t ....................... ok
t/pod_coverage.t .............. ok
t/normalize.t ................. ok
t/dm_skeleton.t ............... 1/19 # MSWin32
t/dm_skeleton.t ............... ok
t/win32.t ..................... ok
t/obviously_non_multi_user.t .. ok
t/test_files.t ................ 1/20
# Failed test at t/test_files.t line 41.
# STDOUT is:
# not ok 1 - writeable is not readable
#
# not:
# ok 1 - writeable is not readable
#
# as expected
# STDERR is:
# # File [writeable] is readable!
# # Failed test 'writeable is not readable'
# # at t/test_files.t line 40.
#
# not:
#
# as expected
# Failed test at t/test_files.t line 52.
# STDOUT is:
# not ok 1 - readable is not writeable
#
# not:
# ok 1 - readable is not writeable
#
# as expected
# STDERR is:
# # File [readable] is writeable!
# # Failed test 'readable is not writeable'
# # at t/test_files.t line 51.
#
# not:
#
# as expected
t/test_files.t ................ Failed 2/20 subtests
t/test_dirs.t ................. ok
t/links.t ..................... ok
t/link_counts.t ............... ok
t/line_counters.t ............. ok
t/file_sizes.t ................ ok
t/file_contains.t ............. 4/?
# Failed test at t/file_contains.t line 42.
# STDERR is:
# # Failed test 'not_readable contains (?^:(?mx:^ xxxxxxxxxxx $))'
# # at t/file_contains.t line 41.
# # ''
# # doesn't match '(?^:(?mx:^ xxxxxxxxxxx $))'
#
# not:
# # File [not_readable] is not readable!
#
# /#\s+Failed\ test.*?\n?.*?at\ t\/file_contains\.t line 41.*\n?/
#
# as expected
# Failed test at t/file_contains.t line 70.
# STDOUT is:
# ok 1 - not_readable doesn't contain (?^:(?mx:^ xxxxxxxxxxxxxxxxxxxx
$))
#
# not:
# not ok 1 - not_readable doesn't contain (?^:(?mx:^
xxxxxxxxxxxxxxxxxxxx $))
#
# as expected
# STDERR is:
#
# not:
# # File [not_readable] is not readable!
#
# /#\s+Failed\ test.*?\n?.*?at\ t\/file_contains\.t line 69.*\n?/
#
# as expected
# Failed test at t/file_contains.t line 104.
# STDOUT is:
# not ok 1 - not_readable contains (?^:(?mx:^ xxxxxxxxxxx $))
# not ok 2 - not_readable contains (?^:(?mx:^
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx $))
#
# not:
# not ok 1 - not_readable contains (?^:(?mx:^ xxxxxxxxxxx $))
#
# as expected
# STDERR is:
# # Failed test 'not_readable contains (?^:(?mx:^ xxxxxxxxxxx $))'
# # at t/file_contains.t line 103.
# # ''
# # doesn't match '(?^:(?mx:^ xxxxxxxxxxx $))'
# # Failed test 'not_readable contains (?^:(?mx:^
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx $))'
# # at t/file_contains.t line 103.
# # ''
# # doesn't match '(?^:(?mx:^
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx $))'
#
# not:
# # File [not_readable] is not readable!
#
# /#\s+Failed\ test.*?\n?.*?at\ t\/file_contains\.t line 103.*\n?/
#
# as expected
# Failed test at t/file_contains.t line 139.
# STDOUT is:
# ok 1 - not_readable doesn't contain (?^:(?mx:^ xxxxxxxxxxxxxxxxxxxx
$))
# ok 2 - not_readable doesn't contain (?^:(?mx:^ xxxxxxxxxxxxxxxxxxxx
$))
#
# not:
# not ok 1 - not_readable doesn't contain (?^:(?mx:^
xxxxxxxxxxxxxxxxxxxx $))
#
# as expected
# STDERR is:
#
# not:
# # File [not_readable] is not readable!
#
# /#\s+Failed\ test.*?\n?.*?at\ t\/file_contains\.t line 138.*\n?/
#
# as expected
t/file_contains.t ............. Failed 4/24 subtests
t/owner.t ..................... ok
t/rt/30346.t .................. ok
Test Summary Report
-------------------
t/test_files.t (Wstat: 0 Tests: 20 Failed: 2)
Failed tests: 10, 12
t/file_contains.t (Wstat: 0 Tests: 24 Failed: 4)
Failed tests: 9, 13, 18, 23
Files=16, Tests=233, 22 wallclock secs ( 0.38 usr 0.66 sys + 6.28 cusr
11.62 csys = 18.93 CPU)
Result: FAIL
Failed 2/16 test programs. 6/233 subtests failed.
Makefile:851: recipe for target `test_dynamic' failed
make: *** [test_dynamic] Error 255
BAREFOOT/Test-File-1.34.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module,
try:
reports BAREFOOT/Test-File-1.34.tar.gz
Running make install
make test had returned bad status, won't install without force