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 |
Message body not shown because it is not plain text.