Skip Menu |

This queue is for tickets about the Data-Sah-Coerce CPAN distribution.

Report information
The Basics
Id: 131332
Status: resolved
Priority: 0/
Queue: Data-Sah-Coerce

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 0.043
  • 0.044
Fixed in: (no value)



Subject: *date* tests fail (with older Time::Local?)
On some of my smokers the three *date* tests fail: ... # Failed test at t/perl-To_date.t line 33. # got: undef # expected: '1451606400' # Failed test at t/perl-To_date.t line 34. # got: undef # expected: '1451606400' # Failed test at t/perl-To_date.t line 37. # got: undef # expected: '-63158400' # Looks like you failed 3 tests of 3. # Failed test 'from iso8601 string' # at t/perl-To_date.t line 38. # Looks like you failed 1 test of 5. # Failed test 'coerce_to=float(epoch)' # at t/perl-To_date.t line 39. # Looks like you failed 1 test of 3. t/perl-To_date.t ......... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/3 subtests (less 1 skipped subtest: 1 okay) # Failed test at t/perl-To_datenotime.t line 19. # undef # doesn't match '(?^:\A\d+\z)' # Failed test at t/perl-To_datenotime.t line 21. # undef # doesn't match '(?^:\A-\d+\z)' # Looks like you failed 2 tests of 3. # Failed test 'from iso8601 string' # at t/perl-To_datenotime.t line 22. # Looks like you failed 1 test of 1. # Failed test 'coerce_to=float(epoch)' # at t/perl-To_datenotime.t line 23. # Looks like you failed 1 test of 3. t/perl-To_datenotime.t ... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/3 subtests (less 1 skipped subtest: 1 okay) # Failed test at t/perl-To_datetime.t line 18. # undef # doesn't match '(?^:\A\d+\z)' # Failed test at t/perl-To_datetime.t line 21. # got: undef # expected: '-63158400' # Looks like you failed 2 tests of 3. # Failed test 'from iso8601 string' # at t/perl-To_datetime.t line 22. # Looks like you failed 1 test of 1. # Failed test 'coerce_to=float(epoch)' # at t/perl-To_datetime.t line 23. # Looks like you failed 1 test of 3. t/perl-To_datetime.t ..... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/3 subtests (less 1 skipped subtest: 1 okay) ... Possible reason: Time::Local is too old on these systems (maybe a version without timelocal/gm_modern?).
Fixed by requiring Time::Local 1.27 in 0.044. Thanks. On Thu, 2 Jan 2020 09:12:34 GMT, SREZIC wrote: Show quoted text
> On some of my smokers the three *date* tests fail: > > ... > # Failed test at t/perl-To_date.t line 33. > # got: undef > # expected: '1451606400' > > # Failed test at t/perl-To_date.t line 34. > # got: undef > # expected: '1451606400' > > # Failed test at t/perl-To_date.t line 37. > # got: undef > # expected: '-63158400' > # Looks like you failed 3 tests of 3. > > # Failed test 'from iso8601 string' > # at t/perl-To_date.t line 38. > # Looks like you failed 1 test of 5. > > # Failed test 'coerce_to=float(epoch)' > # at t/perl-To_date.t line 39. > # Looks like you failed 1 test of 3. > t/perl-To_date.t ......... > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/3 subtests > (less 1 skipped subtest: 1 okay) > > # Failed test at t/perl-To_datenotime.t line 19. > # undef > # doesn't match '(?^:\A\d+\z)' > > # Failed test at t/perl-To_datenotime.t line 21. > # undef > # doesn't match '(?^:\A-\d+\z)' > # Looks like you failed 2 tests of 3. > > # Failed test 'from iso8601 string' > # at t/perl-To_datenotime.t line 22. > # Looks like you failed 1 test of 1. > > # Failed test 'coerce_to=float(epoch)' > # at t/perl-To_datenotime.t line 23. > # Looks like you failed 1 test of 3. > t/perl-To_datenotime.t ... > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/3 subtests > (less 1 skipped subtest: 1 okay) > > # Failed test at t/perl-To_datetime.t line 18. > # undef > # doesn't match '(?^:\A\d+\z)' > > # Failed test at t/perl-To_datetime.t line 21. > # got: undef > # expected: '-63158400' > # Looks like you failed 2 tests of 3. > > # Failed test 'from iso8601 string' > # at t/perl-To_datetime.t line 22. > # Looks like you failed 1 test of 1. > > # Failed test 'coerce_to=float(epoch)' > # at t/perl-To_datetime.t line 23. > # Looks like you failed 1 test of 3. > t/perl-To_datetime.t ..... > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/3 subtests > (less 1 skipped subtest: 1 okay) > ... > > > Possible reason: Time::Local is too old on these systems (maybe a > version without timelocal/gm_modern?).
On 2020-01-02 06:48:48, PERLANCAR wrote: Show quoted text
> Fixed by requiring Time::Local 1.27 in 0.044. Thanks. > > On Thu, 2 Jan 2020 09:12:34 GMT, SREZIC wrote:
> > On some of my smokers the three *date* tests fail: > > > > ... > > # Failed test at t/perl-To_date.t line 33. > > # got: undef > > # expected: '1451606400' > > > > # Failed test at t/perl-To_date.t line 34. > > # got: undef > > # expected: '1451606400' > > > > # Failed test at t/perl-To_date.t line 37. > > # got: undef > > # expected: '-63158400' > > # Looks like you failed 3 tests of 3. > > > > # Failed test 'from iso8601 string' > > # at t/perl-To_date.t line 38. > > # Looks like you failed 1 test of 5. > > > > # Failed test 'coerce_to=float(epoch)' > > # at t/perl-To_date.t line 39. > > # Looks like you failed 1 test of 3. > > t/perl-To_date.t ......... > > Dubious, test returned 1 (wstat 256, 0x100) > > Failed 1/3 subtests > > (less 1 skipped subtest: 1 okay) > > > > # Failed test at t/perl-To_datenotime.t line 19. > > # undef > > # doesn't match '(?^:\A\d+\z)' > > > > # Failed test at t/perl-To_datenotime.t line 21. > > # undef > > # doesn't match '(?^:\A-\d+\z)' > > # Looks like you failed 2 tests of 3. > > > > # Failed test 'from iso8601 string' > > # at t/perl-To_datenotime.t line 22. > > # Looks like you failed 1 test of 1. > > > > # Failed test 'coerce_to=float(epoch)' > > # at t/perl-To_datenotime.t line 23. > > # Looks like you failed 1 test of 3. > > t/perl-To_datenotime.t ... > > Dubious, test returned 1 (wstat 256, 0x100) > > Failed 1/3 subtests > > (less 1 skipped subtest: 1 okay) > > > > # Failed test at t/perl-To_datetime.t line 18. > > # undef > > # doesn't match '(?^:\A\d+\z)' > > > > # Failed test at t/perl-To_datetime.t line 21. > > # got: undef > > # expected: '-63158400' > > # Looks like you failed 2 tests of 3. > > > > # Failed test 'from iso8601 string' > > # at t/perl-To_datetime.t line 22. > > # Looks like you failed 1 test of 1. > > > > # Failed test 'coerce_to=float(epoch)' > > # at t/perl-To_datetime.t line 23. > > # Looks like you failed 1 test of 3. > > t/perl-To_datetime.t ..... > > Dubious, test returned 1 (wstat 256, 0x100) > > Failed 1/3 subtests > > (less 1 skipped subtest: 1 okay) > > ... > > > > > > Possible reason: Time::Local is too old on these systems (maybe a > > version without timelocal/gm_modern?).
> >
Reopening --- I still see test failures. Maybe it shouldn't be specified just a TestRecommended, or alternatively the tests should be skipped if Time::Local is too old?
On Thu, 2 Jan 2020 15:06:54 GMT, SREZIC wrote: Show quoted text
> Reopening --- I still see test failures. Maybe it shouldn't be > specified just a TestRecommended, or alternatively the tests should be > skipped if Time::Local is too old?
Ah sorry about that. Moved to RuntimeRequires. Tests should not be skipped, it's quite essential functionality. Fixed in 0.046.