Skip to content

Commit

Permalink
perl-5.12.1: Remove ext/Time-Local test
Browse files Browse the repository at this point in the history
The test now fails:

    ok 1 - timelocal second for 1970 1 2 0 0 0
    ok 2 - timelocal minute for 1970 1 2 0 0 0
    ok 3 - timelocal hour for 1970 1 2 0 0 0
    ok 4 - timelocal day for 1970 1 2 0 0 0
    ok 5 - timelocal month for 1970 1 2 0 0 0
    not ok 6 - timelocal year for 1970 1 2 0 0 0
    #   Failed test 'timelocal year for 1970 1 2 0 0 0'
    #   at ext/Time-Local/t/Local.t line 97.
    #          got: '170'
    #     expected: '70'

which is probably caused by a Y2K fix in localtime() of glibe.

The test fails with with the installed /usr/local/bin/perl to which we
want to be compatible as well, so just remove the test.
  • Loading branch information
donald committed Apr 26, 2020
1 parent f3cb174 commit e336962
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions perl-5.12.1-0.build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,22 @@ test -e perl-$VERSION.tar.gz || wget http://www.cpan.org/src/5.0/perl-$VERSION.t
test -d perl-$VERSION || tar xf perl-$VERSION.tar.gz
cd perl-$VERSION

# Remove ext/Time-Local/t/Local.t test.
#
# probably some Y2K required change in glibc localtime() makes this fail:
# ok 1 - timelocal second for 1970 1 2 0 0 0
# ok 2 - timelocal minute for 1970 1 2 0 0 0
# ok 3 - timelocal hour for 1970 1 2 0 0 0
# ok 4 - timelocal day for 1970 1 2 0 0 0
# ok 5 - timelocal month for 1970 1 2 0 0 0
# not ok 6 - timelocal year for 1970 1 2 0 0 0
# Failed test 'timelocal year for 1970 1 2 0 0 0'
# at ext/Time-Local/t/Local.t line 97.
# got: '170'
# expected: '70'
#
sed -i '/Local\.t/d' MANIFEST

# Note: make test below would fail with:
# ext/Errno/t/Errno ........... FAILED--Further testing stopped: No errno's are exported
# Cure:
Expand Down

0 comments on commit e336962

Please sign in to comment.