Subject: | Test suite uses /tmp with predictable filenames |
make[3]: Entering directory
`/home/sand/.cpan/build/Module-Refresh-0.09-co3Qzn'
PERL_DL_NONLAZY=1
/home/src/perl/repoperls/installed-perls/perl/pSJtKRO/perl-5.8.0@31017/bin/perl
"-MExtUtils::Command::M
M" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
t/0-smoke.....ok
t/1api........Cannot open /tmp/FooBar.pm: Keine Berechtigung at t/1api.t
line 54.
# Looks like your test died before it could output anything.
dubious
Test returned status 255 (wstat 65280, 0xff00)
t/2lateuse....Cannot open /tmp/BeepBeep.pm: Keine Berechtigung at
t/2lateuse.t line 36.
# Looks like your test died before it could output anything.
dubious
Test returned status 255 (wstat 65280, 0xff00)
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/1api.t 255 65280 ?? ?? ??
t/2lateuse.t 255 65280 ?? ?? ??
Failed 2/3 test scripts. 0/1 subtests failed.
Files=3, Tests=1, 1 wallclock secs ( 0.20 cusr + 0.05 csys = 0.25 CPU)
Failed 2/3 test programs. 0/1 subtests failed.
make[3]: *** [test_dynamic] Fehler 255
make[3]: Leaving directory
`/home/sand/.cpan/build/Module-Refresh-0.09-co3Qzn'
The first bug is that the test script does not clean up after itself.
/tmp/FooBar.pm is still around from a test by a different user. In
general it is considered a security issue to write predictable file
names into /tmp. Better you use File::Temp (and remove the files at the
end nonetheless).