Skip Menu |

This queue is for tickets about the App-ExtractLinks CPAN distribution.

Report information
The Basics
Id: 121935
Status: new
Priority: 0/
Queue: App-ExtractLinks

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

Bug Information
Severity: (no value)
Broken in: 0.0.2
Fixed in: (no value)



Subject: Mysterious test failures (because of using system perl?)
On some of my smokers (e.g. the CentOS7 smoker) the test suite fails like this; ... # Failed test 'output' # at t/basic.t line 18. # got: '' # expected: 'example.com # ' # Looks like you failed 1 test of 2. t/basic.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/2 subtests # Failed test 'output' # at t/page.t line 384. # got: '' # expected: '/feed/recent # /_assets/510a05c940bec575d4a5edfd45e2668f.css # /static/opensearch.xml # /static/icons/favicon.ico # /static/icons/apple-touch-icon.png # / # /recent # /about # /about/faq # https://github.com/metacpan/metacpan-web/issues # /news # /lab # https://fastapi.metacpan.org # # # /account/identities # /account/profile # /account/favorite/list # # # # # https://fastapi.metacpan.org/oauth2/authorize?client_id=metacpan.org&choice=facebook # https://fastapi.metacpan.org/oauth2/authorize?client_id=metacpan.org&choice=github # https://fastapi.metacpan.org/oauth2/authorize?client_id=metacpan.org&choice=twitter # https://fastapi.metacpan.org/oauth2/authorize?client_id=metacpan.org&choice=google # /login/openid # / # /pod/Task::Kensho # http://perl.careers/ # https://www.promocodewatch.com # https://fastapi.metacpan.org # /about # /mirrors # https://github.com/metacpan/metacpan-web # https://www.perl.org/ # http://www.bytemark.co.uk/r/metacpan.org/ # https://www.liquidweb.com/ # ' # Looks like you failed 1 test of 2. t/page.t ... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/2 subtests ... Looking with strace into the running test there were the same syntax errors visible like described in https://rt.cpan.org/Ticket/Display.html?id=121934 . It seems that the extract-links script is run with the system perl here, not the currently used perl. Probably it's best to change the shebang from "#!/usr/bin/env perl" to just "#!perl". EUMM would do the proper shebang replacement for the current perl. And for testing, use blib/script/extract-links (because there the correct shebang is already replaced). (Windows is another story because there's no concept of shebangs, here you maybe have to use $^X or so).