perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: t/SMOKE on win32
Date Thu, 02 Oct 2003 08:29:35 GMT
Randy Kobes wrote:

One more issue with IPC/Run3. Since it's not in the core, we have to 
optionally require it and die in run_test if it's not available. However 
leaving it as 'require IPC::Run3' results in:

Can't locate IPC/Run3.pm in @INC (@INC contains: lib Apache-Test/lib 
/home/stas/perl/5.8.0-ithread/lib/5.8.0/i686-linux-thread-multi 
/home/stas/perl/5.8.0-ithread/lib/5.8.0 
/home/stas/perl/5.8.0-ithread/lib/site_perl/5.8.0/i686-linux-thread-multi 
/home/stas/perl/5.8.0-ithread/lib/site_perl/5.8.0 
/home/stas/perl/5.8.0-ithread/lib/site_perl .) at 
Apache-Test/lib/Apache/TestSmoke.pm line 18.

during the build time, which is bad.

something like:

use constant HAS_IPC_RUN3 => eval { require IPC::Run3 };

...
sub run_test {

   die "IPC::Run3 is required to run this program" unless HAS_IPC_RUN3;
   IPC::Run3->import('run3');
...

}
...


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message