Subject: | Test failure on Solaris |
I'm trying to build IO::Compress::Zlib on Solaris (SXCE b83a i386):
SunOS nas02 5.11 snv_83 i86pc i386 i86pc
I'm using perl 5.8.8 from the Sun coolstack project.
Installation failed through CPAN so I grabbed the tarball and tried
installing manually.
make test fails with the following errors:
t/105oneshot-zip-only.............4/146
# Failed test (t/105oneshot-zip-only.t at line 81)
# got: '603462246'
# expected: '603460446'
t/105oneshot-zip-only.............15/146
# Failed test (t/105oneshot-zip-only.t at line 91)
# got: '603462247'
# expected: '603460447'
t/105oneshot-zip-only.............48/146
# Failed test (t/105oneshot-zip-only.t at line 121)
# '603462250'
# <=
# '603460450'
# Failed test (t/105oneshot-zip-only.t at line 133)
# '603462250'
# <=
# '603460450'
# Looks like you failed 4 tests of 146.
t/105oneshot-zip-only............. Dubious, test returned 4 (wstat 1024,
0x400)
Failed 4/146 subtests
Looking at the tests that are failing, they all seem to be related to
file times:
81: is $hdr->{Time}>>1, $mtime>>1, " Time is ok";
91: is $hdr->{Time} >> 1, $mtime >> 1, " Time is ok";
121: cmp_ok $hdr->{Time} >> 1, '<=', $after >> 1, " Time is ok";
133: cmp_ok $hdr->{Time} >> 1, '<=', $after >> 1, " Time is ok";
The same thing works fine on Fedora 8.