日期::ICal的安装在运行健全性测试时失败



我正在尝试安装模块Date::ICal,但它未通过其中一项测试。输出为:

Running make test for RBOW/Date-ICal-2.678.tar.gz
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00load.t ........ ok   
t/01sanity.t ...... 1/? 
#   Failed test 'Epoch time of 0'
#   at t/01sanity.t line 13.
#          got: '3155760000'
#     expected: '0'
#   Failed test 'Time should be stored in UTC anyway, right?'
#   at t/01sanity.t line 28.
#          got: '3155760000'
#     expected: '0'
# Looks like you failed 2 tests of 22.
t/01sanity.t ...... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/22 subtests 
t/02normalize.t ... ok   
t/03components.t .. ok   
t/04epoch.t ....... 1/? 
#   Failed test 'creation test from epoch (compare to epoch)'
#   at t/04epoch.t line 8.
#          got: '3155760000'
#     expected: '0'
#   Failed test 'creation test from epoch = 3600 (compare to epoch)'
#   at t/04epoch.t line 19.
#          got: '3155763600'
#     expected: '3600'
# Looks like you failed 2 tests of 18.
t/04epoch.t ....... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/18 subtests 
Failed 2/18 subtests 
t/05ical.t ........ ok    
t/06add.t ......... ok     
t/07compare.t ..... ok    
t/08offset.t ...... 1/? 
#   Failed test 'creation test from epoch (compare to epoch)'
#   at t/08offset.t line 8.
# Looks like you failed 1 test of 30.
t/08offset.t ...... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/30 subtests 
t/09greg.t ........ ok    
t/10subtract.t .... ok    
t/11duration.t .... ok   

我在Raspberry Pi3和Windows 11上的Ubuntu应用程序中都尝试过,结果都是一样的。

看起来他们都在为这个时期增加3155760000的偏移量。有什么想法为什么以及如何修复它吗?

看起来有些东西在一年内停止了(一年中3155760000秒,大约是π*10^9(。该模块已经一年没有更新了,模块中的警告说不要使用它:

请注意,此模块早已废弃。虽然我接受补丁,偶尔也会使用,在大多数情况下建议您离开此模块并使用各种模块由datetime项目开发。您可以了解有关日期时间项目http://datetime.perl.org/

如果您是为一些遗留的东西安装这个模块,那么该模块的当前版本与您以前使用的版本匹配吗?

相关内容

  • 没有找到相关文章

最新更新