Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Devel-Cover CPAN distribution.

Report information
The Basics
Id: 67713
Status: resolved
Priority: 0/
Queue: Devel-Cover

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

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



Subject: cover -test spouting "Insecure dependency in open while running with -T switch" errors
When cover -test is ran inside a distribution that contains at least two tests that enable taint mode via the -T argument on the shebang, it causes "Insecure dependency in open while running with -T switch" errors starting from the *second* test : ===================================================================== $ cover5.12.3-64 -test Deleting database /tmp/wut/cover_db cover: running make test OPTIMIZE=-O0\ -fprofile-arcs\ -ftest-coverage OTHERLDFLAGS=-fprofile-arcs\ -ftest-coverage PERL_DL_NONLAZY=1 /home/vince/perl/builds/64/5.12.3/bin/perl5.12.3 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/1.t .. ok t/2.t .. 1/1 Insecure dependency in open while running with -T switch at /home/vince/perl/builds/64/5.12.3/lib/site_perl/5.12.3/x86_64-linux/Devel/Cover/DB/IO.pm line 79. END failed--call queue aborted. t/2.t .. Dubious, test returned 25 (wstat 6400, 0x1900) All 1 subtests passed Test Summary Report ------------------- t/2.t (Wstat: 6400 Tests: 1 Failed: 0) Non-zero exit status: 25 Files=2, Tests=2, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.41 cusr 0.01 csys = 0.44 CPU) Result: FAIL Failed 1/2 test programs. 0/2 subtests failed. make: *** [test_dynamic] Erreur 25 Reading database from /tmp/wut/cover_db Devel::Cover: merging data for t/1.t into t/2.t ---------------------------- ------ ------ ------ ------ ------ ------ ------ File stmt bran cond sub pod time total ---------------------------- ------ ------ ------ ------ ------ ------ ------ t/2.t n/a n/a n/a n/a n/a n/a n/a Total n/a n/a n/a n/a n/a n/a n/a ---------------------------- ------ ------ ------ ------ ------ ------ ------ Writing HTML output to /tmp/wut/cover_db/coverage.html ... done. ===================================================================== The attached file contains a mock distribution that illustrates the issue. Also note that coverage for the test file "t/2.t" appears in the summary report (as well as in the generated html files). This is most likely caused by http://rt.cpan.org/Ticket/Display.html?id=65920 Regards, Vincent.
Subject: wut.tar.bz2
Download wut.tar.bz2
application/x-bzip2 1k

Message body not shown because it is not plain text.

This is resolved in 0.77, but it has come about as a result of reworking the IO code rather than specifically fixing the bug. So please test this on your real code and reopen this ticket if it fails. Thanks very much for a super test case.