On Tue, 26 Aug 2003 09:07:21 -0700, Stas Bekman wrote:

[snip]
> 
> As you posted in the followup, this is a problem with
> all Apache:: modules. 
> The problem originates within Apache, not us.
> 
> FWIW, the cvs version of Apache::Test warns you early
> whether this is going to 
> work or not, rather than just failing during 'make
> test'.
> 
> Ideas how to solve this are *very* welcome.
> 
[snip]

Stas,

One thing we're working on implementing in Apache::PAR
to solve this kind of problem is to use File::Spec's
tmpdir to get the platform specific temp directory. 
This function appears to be available in File::Spec at
least as of Perl 5.6.0 as part of the distribution.

This could be used (maybe overridable via a env
variable, etc) to determine a temporary directory to
copy the t/ directory to in cases where permissions
would deny reading from the working directory or a
parent directory.  Of course, it would still have to
fail in cases where a temp directory isn't available
(either File::Spec doesn't support the platform or a
new enough version of File::Spec isn't available on an
old version of Perl) and the env variable isn't set,
but should handle almost all common cases.

Once the content is copied, Apache::Test would then use
that directory to serve test files, scripts, etc out
of.  This temporary directory could then also be
cleaned up when the Apache server is shutdown.

Of course, I haven't looked at the code for
Apache::Test enough to know whether this would be
easily implemented, but just thought I would throw out
the idea. 

Thanks,

Nathan Byrd


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html

Reply via email to