Subject: | Should not try to create directories during "make test" |
On some of my systems "make test" fails like this:
Output from '/usr/bin/make test':
PERL_DL_NONLAZY=1 "/bbbike/perl-5.20.0t/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
Unable to create session dir : /opt/perl-5.20.0t/sessions : Permission denied at (eval 160) line 12.
BEGIN failed--compilation aborted at /opt/perl-5.20.0t/lib/site_perl/5.20.0/Strehler/Admin.pm line 9.
Compilation failed in require at t/testapp/lib/Site.pm line 8.
BEGIN failed--compilation aborted at t/testapp/lib/Site.pm line 8.
Compilation failed in require at t/001_chapter.t line 15.
t/001_chapter.t ..
Dubious, test returned 13 (wstat 3328, 0xd00)
No subtests run
Unable to create session dir : /opt/perl-5.20.0t/sessions : Permission denied at (eval 150) line 12.
BEGIN failed--compilation aborted at /opt/perl-5.20.0t/lib/site_perl/5.20.0/Strehler/Admin.pm line 9.
Compilation failed in require at t/002_artwork.t line 15.
t/002_artwork.t ..
Dubious, test returned 13 (wstat 3328, 0xd00)
No subtests run
"make test" is usually executed as an unprivileged user, so it's not possible to create a subdirectory in the installation directory. Also, I don't think it's a good idea to invent another subdirectory "sessions" here --- probably it's better to use standard OS locations like /var, /tmp, or /run.