Subject: | Bug in Test::File::Contents |
Date: | Thu, 28 Oct 2010 10:45:44 +0300 |
To: | <bug-test-file-contents [...] rt.cpan.org> |
From: | "Octavian Rasnita" <orasnita [...] gmail.com> |
Hi,
I have tried to install Test::File::Contents under Windows XP Pro with cpan and Perl 5.10.1 but the test of this file gave the error below.
(Maybe because of different end of line endings under Windows...)
Running Build test
t\00.load.t ....... # Testing Test::File::Contents 0.05
t\00.load.t ....... ok
t\10.basic.t ...... 1/25
# Failed test 'file_md5sum works when incorrect'
# at t\10.basic.t line 116.
# STDERR is:
# <[30m<[42m# File t<[30m<[41m\aaa.txt has md5sum 5c9597f3c8245907ea71a89d9d39d08e not 0123456789abcdef0123456789abcdef<[0m
# <[30m<[41m# Failed test 'file matches md5sum'<[0m
# <[30m<[41m# at t\10.basic.t line 115.<[0m
# <[30m<[41m<[0m
# not:
# <[30m<[42m# File t<[30m<[41m/aaa.txt has md5sum 5c9597f3c8245907ea71a89d9d39d08e not 0123456789abcdef0123456789abcdef<[0m
# <[30m<[41m<[0m
# <[30m<[41m/#\s+Failed\ test.*?\n?.*?at\ t\\10\.basic\.t line 115.*\n?/<[0m
# <[30m<[41m<[0m
# as expected
# Failed test 'file_contents_identical works when incorrect'
# at t\10.basic.t line 136.
# STDERR is:
# <[30m<[42m# Files t<[30m<[41m\aaa.txt and t\bbb.txt are not identical.<[0m
# <[30m<[41m# Failed test 'file contents identical'<[0m
# <[30m<[41m# at t\10.basic.t line 135.<[0m
# <[30m<[41m<[0m
# not:
# <[30m<[42m# Files t<[30m<[41m/aaa.txt and t/bbb.txt are not identical.<[0m
# <[30m<[41m<[0m
# <[30m<[41m/#\s+Failed\ test.*?\n?.*?at\ t\\10\.basic\.t line 135.*\n?/<[0m
# <[30m<[41m<[0m
# as expected
t\10.basic.t ...... Failed 2/25 subtests
t\pod-coverage.t .. ok
t\pod.t ........... ok
Test Summary Report
-------------------
t\10.basic.t (Wstat: 0 Tests: 25 Failed: 2)
Failed tests: 21, 25
Files=4, Tests=28, 0 wallclock secs ( 0.03 usr + 0.03 sys = 0.06 CPU)
Result: FAIL
Failed 1/4 test programs. 2/28 subtests failed.
SKUD/Test-File-Contents-0.05.tar.gz
e:\usr\bin\perl.exe ./Build test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports SKUD/Test-File-Contents-0.05.tar.gz
Running Build install
make test had returned bad status, won't install without force
Failed during this command:
SKUD/Test-File-Contents-0.05.tar.gz : make_test NO
Show quoted text
cpan> look Test::File::Contents
Running look for module 'Test::File::Contents'
Trying to open a subshell in the build directory...
Working directory is E:\usr\cpan\build\Test-File-Contents-0.05-7827Fv
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
E:\usr\cpan\build\Test-File-Contents-0.05-7827Fv>
E:\usr\cpan\build\Test-File-Contents-0.05-7827Fv>prove -l t\10.basic.t
t\10.basic.t .. 1/25
# Failed test 'file_md5sum works when incorrect'
# at t\10.basic.t line 116.
# STDERR is:
# <[30m<[42m# File t<[30m<[41m\aaa.txt has md5sum 5c9597f3c8245907ea71a89d9d39d08e not 0123456789abcdef0123456789abcdef<[0m
# <[30m<[41m# Failed test 'file matches md5sum'<[0m
# <[30m<[41m# at t\10.basic.t line 115.<[0m
# <[30m<[41m<[0m
# not:
# <[30m<[42m# File t<[30m<[41m/aaa.txt has md5sum 5c9597f3c8245907ea71a89d9d39d08e not 0123456789abcdef0123456789abcdef<[0m
# <[30m<[41m<[0m
# <[30m<[41m/#\s+Failed\ test.*?\n?.*?at\ t\\10\.basic\.t line 115.*\n?/<[0m
# <[30m<[41m<[0m
# as expected
# Failed test 'file_contents_identical works when incorrect'
# at t\10.basic.t line 136.
# STDERR is:
# <[30m<[42m# Files t<[30m<[41m\aaa.txt and t\bbb.txt are not identical.<[0m
# <[30m<[41m# Failed test 'file contents identical'<[0m
# <[30m<[41m# at t\10.basic.t line 135.<[0m
# <[30m<[41m<[0m
# not:
# <[30m<[42m# Files t<[30m<[41m/aaa.txt and t/bbb.txt are not identical.<[0m
# <[30m<[41m<[0m
# <[30m<[41m/#\s+Failed\ test.*?\n?.*?at\ t\\10\.basic\.t line 135.*\n?/<[0m
# <[30m<[41m<[0m
# as expected
t\10.basic.t .. Failed 2/25 subtests
Test Summary Report
-------------------
t\10.basic.t (Wstat: 0 Tests: 25 Failed: 2)
Failed tests: 21, 25
Files=1, Tests=25, 0 wallclock secs ( 0.01 usr + 0.02 sys = 0.03 CPU)
Result: FAIL
E:\usr\cpan\build\Test-File-Contents-0.05-7827Fv>
HTH
--Octavian