On Fri, Mar 4, 2011 at 4:57 PM, David Cantrell <da...@cantrell.org.uk>wrote:
> On Fri, Mar 04, 2011 at 09:16:14AM -0500, Shawn H Corey wrote: > > On 11-03-04 01:54 AM, Zbigniew Lukasiak wrote: > > >my $psgi_file = File::Spec->catfile( 't', 'app.psgi' ); > > I thought the tests were done in the t directory. If so, then the file > > its looking for would be: t/t/app.psgi > > Nope. The cwd is normally that into which the distribution was > unpacked. I do that sort of thing all the time. > I think I can confirm that now. I changed the code to: if( -d 't' ){ chdir 't'; } else{ warn 'I am in: ' . getcwd(); } my $psgi_file = 'app.psgi'; my $app = do $psgi_file || die $! ? "Cannot find '$psgi_file': $!" : "Cannot compile '$psgi_file': $@"; but I don't see 'I am in: ' in the test results: http://www.cpantesters.org/distro/P/Plack-Middleware-Auth-Form.html Still half of the tests fail. Any idea what this can be? -- Zbigniew