Subject: | make test failure (temporary directory?) |
I have one test failure with Catalyst-Runtime using perl 5.8.8 on a
FreeBSD system:
t/unit_core_component_loading...............................mkdir
test_trash: Permission denied at t/unit_core_component_loading.t line 55
# Looks like your test died before it could output anything.
t/unit_core_component_loading...............................dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-150
Failed 150/150 tests, 0.00% okay
It seems that the test script is using a temporary directory within the
test directory. This failed because the user running make test had no
permissions creating any files in the t/ directory (why it was so I
don't know; I was installing Task::Catalyst from CPAN.pm and use CPAN.pm
in non-root mode with the make_install command set to "sudo make").
To avoid this, one couls use tempdir() from File::Temp to create the
temporary directory, preferably with the CLEANUP=>1 option.
Regards,
Slaven