Skip Menu |

This queue is for tickets about the B-Lint CPAN distribution.

Report information
The Basics
Id: 127196
Status: new
Priority: 0/
Queue: B-Lint

People
Owner: Nobody in particular
Requestors: micromy [...] free.fr
Cc:
AdminCc:

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



Subject: Duplicate lines in test file t/lint.t - workaround available
Date: Tue, 25 Sep 2018 10:27:07 +0200 (CEST)
To: bug-B-Lint [...] rt.cpan.org
From: micromy [...] free.fr
Hello, I've tried to install B::Lint module on Perl v5.26.2 using cpan shell. During the test step the test number 7 (out of 29) has failed: ------------------------------------------------------------------ Running make test 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/lint.t .. 7/29 # Failed at t/lint.t line 119 # got 'Bare sub name \'bare\' interpreted as string at -e line 1 # ' # expected 'Bare sub name \'bare\' interpreted as string at -e line 1 # Bare sub name \'bare\' interpreted as string at -e line 1 # ' t/lint.t .. Failed 1/29 subtests Test Summary Report ------------------- t/lint.t (Wstat: 0 Tests: 29 Failed: 1) Failed test: 27 Files=1, Tests=29, 1 wallclock secs ( 0.03 usr 0.00 sys + 1.12 cusr 0.13 csys = 1.28 CPU) Result: FAIL Failed 1/1 test programs. 1/29 subtests failed. ------------------------------------------------------------------ I've taken a look at the lint.t file into my ~/.cpan/build/B-Lint-1.20.0/t directory. The test seemed to have duplicate lines at 120 and 121 : ------------------------------------------------------------------ runlint 'bare-subs', 'sub bare(){1}; $x=[bare=>0]; $x=$y{bare}', <<'RESULT'; Bare sub name 'bare' interpreted as string at -e line 1 Bare sub name 'bare' interpreted as string at -e line 1 RESULT ------------------------------------------------------------------ I've suppressed one of the 2 lines "Bare sub name 'bare' interpreted as string at -e line 1", and the test has passed without any issue. Now B::Lint module is installed for me. Best regards, Micromy