Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test suite creates temp files with fixed path #26

Open
dcollinsn opened this issue Oct 2, 2016 · 0 comments
Open

Test suite creates temp files with fixed path #26

dcollinsn opened this issue Oct 2, 2016 · 0 comments

Comments

@dcollinsn
Copy link

Hello,

Please see the following test failure:

`Output from './Build test':

t/003_helper.t ....... ok
t/001_load.t ......... ok

Failed test 'use Catalyst::Test;'

at t/005_memory_leak.t line 9.

Tried to use 'Catalyst::Test'.

Error: Couldn't instantiate component "TestApp::View::Xslate::SJIS", "mkdir /tmp/TestApp/%2Fhome%2Fcpan4%2F.cpan%2Fbuild%2FCatalyst-View-Xslate-0.00019-0%2Ft%2Flib%2FTestApp%2Froot/: Permission denied at /home/cpan4/install/lib/perl5/site_perl/5.25.6/Catalyst/Test.pm line 155.

BEGIN failed--compilation aborted at t/005_memory_leak.t line 9.

Undefined subroutine &main::ctx_request called at t/005_memory_leak.t line 13.

Looks like your test exited with 255 just after 1.

t/005_memory_leak.t ..
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 3/3 subtests

Failed test 'use Catalyst::Test;'

at t/002_render.t line 7.

Tried to use 'Catalyst::Test'.`

This occurs because your testsuite attempts to create a temporary directory with a hardcoded name (specifically, /tmp/TestApp). However, if another user has already built your module on the same computer, it will be impossible to access that directory. Please consider using a non-hardcoded name for your top-level temporary directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant