Akint / Zabbix-ServerScript

Other
0 stars 0 forks source link

t/11_create_config.t fails #7

Open eserte opened 1 month ago

eserte commented 1 month ago

On some of my smoker systems (mostly newer perls + newer OSes) the test suite fails:

    #   Failed test 'Successfully finishes its job when valid dirs are provided'
    #   at t/11_create_config.t line 39.
    #                   'Only one Term::ReadLine::Gnu instance is allowed. at /usr/home/cpansand/.cpan/build/2024102016/Zabbix-ServerScript-0.14-0/blib/lib/Zabbix/ServerScript.pm line 359.
    # '
    #     doesn't match '(?^:Exit called)'

    #   Failed test 'Config.pm exists in provided dir'
    #   at t/11_create_config.t line 40.

    #   Failed test 'require '/tmp/test_module_dir.l05sPC/Config.pm';'
    #   at t/11_create_config.t line 41.
    #     Tried to require ''/tmp/test_module_dir.l05sPC/Config.pm''.
    #     Error:  Can't locate /tmp/test_module_dir.l05sPC/Config.pm at (eval 31) line 2.

    #   Failed test 'Successfully exits if overwrite is not requested'
    #   at t/11_create_config.t line 50.
    #                   'Only one Term::ReadLine::Gnu instance is allowed. at /usr/home/cpansand/.cpan/build/2024102016/Zabbix-ServerScript-0.14-0/blib/lib/Zabbix/ServerScript.pm line 359.
    # '
    #     doesn't match '(?^:Exit called)'

    #   Failed test 'Successfully exits if overwrite is requested'
    #   at t/11_create_config.t line 56.
    #                   'Only one Term::ReadLine::Gnu instance is allowed. at /usr/home/cpansand/.cpan/build/2024102016/Zabbix-ServerScript-0.14-0/blib/lib/Zabbix/ServerScript.pm line 359.
    # '
    #     doesn't match '(?^:Exit called)'

    #   Failed test 'File modification time changes if overwrite is requested'
    #   at t/11_create_config.t line 58.
    #          got: undef
    #     expected: anything else
    # Looks like you failed 6 tests of 8.

#   Failed test 'Test config creation'
#   at t/11_create_config.t line 59.
# Looks like you failed 1 test of 1.
t/11_create_config.t ... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests 
eserte commented 1 month ago

It seems that it happens with newer Term::ReadLine::Gnu versions...